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 Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides a hash table that contains keys that are case-insensitive strings and values that can be serialized and deserialized during Windows PowerShell remoting handshakes. This class is introduced in Windows PowerShell 2.0.

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

System.Object
  System.Collections.Hashtable
    System.Management.Automation.PSPrimitiveDictionary

<SerializableAttribute>
Public NotInheritable Class PSPrimitiveDictionary
	Inherits Hashtable

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.

NameDescription
System_CAPS_pubpropertyCount

(Inherited from Hashtable.)

System_CAPS_pubpropertyIsFixedSize

(Inherited from Hashtable.)

System_CAPS_pubpropertyIsReadOnly

(Inherited from Hashtable.)

System_CAPS_pubpropertyIsSynchronized

(Inherited from Hashtable.)

System_CAPS_pubpropertyItem(Object)

Gets and sets an element in the hash table by using an element key of type Object. This property is introduced in Windows PowerShell 2.0.(Overrides Hashtable.Item(Object).)

System_CAPS_pubpropertyItem(String)

Gets and sets an element in the hash table by using an element key of type String. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyKeys

(Inherited from Hashtable.)

System_CAPS_pubpropertySyncRoot

(Inherited from Hashtable.)

System_CAPS_pubpropertyValues

(Inherited from Hashtable.)

NameDescription
System_CAPS_pubmethodAdd(Object, Object)

Adds a key and value pair of type Object to the hash table. This method is introduced in Windows PowerShell 2.0.(Overrides Hashtable.Add(Object, Object).)

System_CAPS_pubmethodAdd(String, Boolean)

Adds a key of type String and a value of type Boolean to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Boolean())

Adds a key of type String and a value that is an array of type Boolean to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Byte)

Adds a key of type String and a value of type Byte to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Byte())

Adds a key of type String and a value that is an array of type Byte to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Char)

Adds a key of type String and a value of type Char to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Char())

Adds a key of type String and a value that is an array of type Char to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, DateTime)

Adds a key of type String and a value of type DateTime to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, DateTime())

Adds a key of type String and a value that is an array of type DateTime to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Decimal)

Adds a key of type String and a value of type Decimal to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Decimal())

Adds a key of type String and a value that is an array of type Decimal to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Double)

Adds a key of type String and a value of type Double to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Double())

Adds a key of type String and a value that is an array of type Double to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Guid)

Adds a key of type String and a value of type Guid to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Guid())

Adds a key of type String and a value that is an array of type Guid to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Int32)

Adds a key of type String and a value of type Int32 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Int32())

Adds a key of type String and a value that is an array of type Int32 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Int64)

Adds a key of type String and a value of type Int64 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Int64())

Adds a key of type String and a value that is an array of type Int64 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, PSPrimitiveDictionary)

Adds a key of type String and a value of type PSPrimitiveDictionary to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, PSPrimitiveDictionary())

Adds a key of type String and a value that is an array of type PSPrimitiveDictionary to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, SByte)

Adds a key of type String and a value of type SByte to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, SByte())

Adds a key of type String and a value that is an array of type SByte to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Single)

Adds a key of type String and a value of type Single to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Single())

Adds a key of type String and a value that is an array of type Single to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, String)

Adds a key of type String and a value of type String to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, String())

Adds a key of type String and a value that is an array of type String to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, TimeSpan)

Adds a key of type String and a value of type TimeSpan to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, TimeSpan())

Adds a key of type String and a value that is an array of type TimeSpan to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt16)

Adds a key of type String and a value of type UInt16 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt16())

Adds a key of type String and a value that is an array of type UInt16 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt32)

Adds a key of type String and a value of type UInt32 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt32())

Adds a key of type String and a value that is an array of type UInt32 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt64)

Adds a key of type String and a value of type UInt64 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, UInt64())

Adds a key of type String and a value that is an array of type UInt64 to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Uri)

Adds a key of type String and a value of type Uri to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Uri())

Adds a key of type String and a value that is an array of type Uri to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Version)

Adds a key of type String and a value of type Version to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodAdd(String, Version())

Adds a key of type String and a value that is an array of type Version to the hash table. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodClear()

(Inherited from Hashtable.)

System_CAPS_pubmethodClone()

Generates a shallow copy of the current PSPrimitiveDictionary object. This method is introduced in Windows PowerShell 2.0.(Overrides Hashtable.Clone().)

System_CAPS_pubmethodContains(Object)

(Inherited from Hashtable.)

System_CAPS_pubmethodContainsKey(Object)

(Inherited from Hashtable.)

System_CAPS_pubmethodContainsValue(Object)

(Inherited from Hashtable.)

System_CAPS_pubmethodCopyTo(Array, Int32)

(Inherited from Hashtable.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

(Inherited from Hashtable.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Hashtable.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodOnDeserialization(Object)

(Inherited from Hashtable.)

System_CAPS_pubmethodRemove(Object)

(Inherited from Hashtable.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: