Runspace.GetApplicationPrivateData Method

Definition

Private data to be used by applications built on top of PowerShell.

        Local runspace is created with application private data set to an empty <xref href="System.Management.Automation.PSPrimitiveDictionary"></xref>.

        Remote runspace gets its application private data from the server (set when creating a remote runspace pool) 
        Calling this method on a remote runspace will block until the data is received from the server.  
        The server will send application private data before reaching <xref href="System.Management.Automation.Runspaces.RunspacePoolState.Opened"></xref> state.

        Runspaces that are part of a <xref href="System.Management.Automation.Runspaces.RunspacePool"></xref> inherit application private data from the pool.
public abstract System.Management.Automation.PSPrimitiveDictionary GetApplicationPrivateData ();
Returns