다음을 통해 공유


PSPrimitiveDictionary Constructors

Definition

Overloads

PSPrimitiveDictionary()

Initializes a new empty instance of the PSPrimitiveDictionary class.

PSPrimitiveDictionary(Hashtable)

Initializes a new instance of the PSPrimitiveDictionary class with contents copied from the other hashtable.

PSPrimitiveDictionary()

Initializes a new empty instance of the PSPrimitiveDictionary class.

public:
 PSPrimitiveDictionary();
public:
 PSPrimitiveDictionary();
 PSPrimitiveDictionary();
public PSPrimitiveDictionary ();
Public Sub New ()

Applies to

PSPrimitiveDictionary(Hashtable)

Initializes a new instance of the PSPrimitiveDictionary class with contents copied from the other hashtable.

public:
 PSPrimitiveDictionary(System::Collections::Hashtable ^ other);
public PSPrimitiveDictionary (System.Collections.Hashtable other);
new System.Management.Automation.PSPrimitiveDictionary : System.Collections.Hashtable -> System.Management.Automation.PSPrimitiveDictionary
Public Sub New (other As Hashtable)

Parameters

other
Hashtable

Hashtable to copy into the new instance of PSPrimitiveDictionary

Exceptions

This constructor will throw if the other hashtable contains keys that are not a strings or values that are not one of primitive types that will work during PowerShell remoting handshake.

Applies to