Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PSPrimitiveDictionary Class

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

PSPrimitiveDictionary is a Hashtable that is limited to 1) case-insensitive strings as keys and 2) values that can be serialized and deserialized during PowerShell remoting handshake (in major-version compatible versions of PowerShell remoting)

public ref class PSPrimitiveDictionary sealed : System::Collections::Hashtable
[System.Serializable]
public sealed class PSPrimitiveDictionary : System.Collections.Hashtable
public sealed class PSPrimitiveDictionary : System.Collections.Hashtable
[<System.Serializable>]
type PSPrimitiveDictionary = class
 inherit Hashtable
type PSPrimitiveDictionary = class
 inherit Hashtable
Public NotInheritable Class PSPrimitiveDictionary
Inherits Hashtable
Inheritance
PSPrimitiveDictionary
Attributes

Constructors

Name Description
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.

Properties

Name Description
Item[Object]

Gets or sets the value associated with the specified key.

Item[String]

Gets or sets the value associated with the specified key.

Methods

Name Description
Add(Object, Object)

Adds an element with the specified key and value into the Hashtable.

Add(String, Boolean)

Adds an element with the specified key and value into the Hashtable.

Add(String, Boolean[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Byte)

Adds an element with the specified key and value into the Hashtable.

Add(String, Byte[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Char)

Adds an element with the specified key and value into the Hashtable.

Add(String, Char[])

Adds an element with the specified key and value into the Hashtable.

Add(String, DateTime)

Adds an element with the specified key and value into the Hashtable.

Add(String, DateTime[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Decimal)

Adds an element with the specified key and value into the Hashtable.

Add(String, Decimal[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Double)

Adds an element with the specified key and value into the Hashtable.

Add(String, Double[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Guid)

Adds an element with the specified key and value into the Hashtable.

Add(String, Guid[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Int32)

Adds an element with the specified key and value into the Hashtable.

Add(String, Int32[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Int64)

Adds an element with the specified key and value into the Hashtable.

Add(String, Int64[])

Adds an element with the specified key and value into the Hashtable.

Add(String, PSPrimitiveDictionary)

Adds an element with the specified key and value into the Hashtable.

Add(String, PSPrimitiveDictionary[])

Adds an element with the specified key and value into the Hashtable.

Add(String, SByte)

Adds an element with the specified key and value into the Hashtable.

Add(String, SByte[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Single)

Adds an element with the specified key and value into the Hashtable.

Add(String, Single[])

Adds an element with the specified key and value into the Hashtable.

Add(String, String)

Adds an element with the specified key and value into the Hashtable.

Add(String, String[])

Adds an element with the specified key and value into the Hashtable.

Add(String, TimeSpan)

Adds an element with the specified key and value into the Hashtable.

Add(String, TimeSpan[])

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt16)

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt16[])

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt32)

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt32[])

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt64)

Adds an element with the specified key and value into the Hashtable.

Add(String, UInt64[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Uri)

Adds an element with the specified key and value into the Hashtable.

Add(String, Uri[])

Adds an element with the specified key and value into the Hashtable.

Add(String, Version)

Adds an element with the specified key and value into the Hashtable.

Add(String, Version[])

Adds an element with the specified key and value into the Hashtable.

Clone()

Creates a new instance by doing a shallow copy of the current instance.

Applies to