Types/OpenPackage.Part/ReadCliXml.ps1
|
<# .SYNOPSIS Reads Part Content as Clixml .DESCRIPTION Reads Open Package Part Content as Clixml #> [Reflection.AssemblyMetadata('FilePattern', '\.(?>clixml|clix)?$')] param( # An optional input object # If provided, content will be read from this object. # If not provided, content will be read from this part. [Alias('Input')] [PSObject]$InputObject = $null, # Any options used to read the data. [Alias('Options')] [Collections.IDictionary]$Option = [Ordered]@{} ) if (-not $this.ReadText) { return } $partText = $this.ReadText($InputObject, $option) return [Management.Automation.PSSerializer]::Deserialize($partText) |