Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSPrimitiveDictionary Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new PSPrimitiveDictionary object. The variants of this constructor can create an empty object and an object that contains an existing hash table. This constructor is introduced by Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodPSPrimitiveDictionary()

Creates a new PSPrimitiveDictionary object that is empty. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSPrimitiveDictionary(Hashtable)

Creates a new PSPrimitiveDictionary object that contains an existing hash table. This constructor is introduced by Windows PowerShell 2.0.

The primary scenario for using this dictionary is when you are creating a runspace for a remote connection. However, this dictionary can also be used whenever you need a dictionary that is guaranteed to contain only primitive types that can be serialized and deserialized. For more information about creating a runspace, see the RunspaceFactory class.

Return to top

Community Additions

Show: