2.2.2.13 APPLICATION_PRIVATE_DATA Message
The Data field of a PSRP message specifies an APPLICATION_PRIVATE_DATA message when the MessageType field has a value of 0x00021009.
In messages of this type, the Data field is UTF-8 encoded XML, equivalent to the XML created by serializing a Complex Object (section 2.2.5.2) with the following extended properties (see section 2.2.5.2.9). Note that the PowerShell Remoting Protocol does not generate or interpret any application private data; it merely provides a mechanism for the higher layer on the server to send application private data to a client, and a mechanism for the higher-layer on the client to be notified when application private data is reported by the server.
Application private data that the higher layer provides to the server when a RunspacePool is created on the server. The PowerShell Remoting Protocol does not interpret this data; it merely passes it to the higher-layers on the client.
Property name: ApplicationPrivateData
Property type: A Primitive Dictionary (see section 2.2.3.18) or Null Value (see section 2.2.5.1.20).
The Complex Object described in this section SHOULD have no associated type names (section 2.2.5.2.3).
Example:
-
<Obj RefId="0"> <MS> <Obj N="ApplicationPrivateData" RefId="1"> <TN RefId="0"> <T>System.Management.Automation.PSPrimitiveDictionary</T> <T>System.Collections.Hashtable</T> <T>System.Object</T> </TN> <DCT> <En> <S N="Key">BashPrivateData</S> <Obj N="Value" RefId="2"> <TNRef RefId="0" /> <DCT> <En> <S N="Key">BashVersion</S> <Version N="Value">2.0</Version> </En> </DCT> </Obj> </En> </DCT> </Obj> </MS> </Obj>