-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-utilityArea - Microsoft.PowerShell.Utility moduleArea - Microsoft.PowerShell.Utility module
Description
Type of issue
Missing information
Feedback
I cannot find any mention, that using this cmdlet on previously serialized PSCustomObject will change its PSTypeName (itwill be prefixed with 'Deserialized.'.
Proof:
$original = [PSCustomObject] @{ PSTypeName = 'before' }
$original.PSObject.TypeNames
$original | Export-CliXml -Path 1.xml
$deserialized = Import-CliXml -Path 1.xml
$deserialized.PSObject.TypeNamesOutput:
before
System.Management.Automation.PSCustomObject
System.Object
Deserialized.before
Deserialized.System.Management.Automation.PSCustomObject
Deserialized.System.Object
Page URL
Content source URL
Author
Document Id
0a2e8234-2bd0-2875-7728-78edca932a48
Metadata
Metadata
Assignees
Labels
area-utilityArea - Microsoft.PowerShell.Utility moduleArea - Microsoft.PowerShell.Utility module