PSPrimitiveDictionary.Add Method

Definition

Overloads

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

Add(String, SByte)

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, Int64[])

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

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, 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, Decimal)

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

public void Add (string key, sbyte[] value);
Parameters
key
String

The key of the element to add

value
SByte[]

The value of the element to add

Add(String, Single)

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

public void Add (string key, float value);
Parameters
key
String

The key of the element to add

value
Single

The value of the element to add

Add(String, Single[])

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

public void Add (string key, float[] value);
Parameters
key
String

The key of the element to add

value
Single[]

The value of the element to add

Add(String, String)

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

public void Add (string key, string value);
Parameters
key
String

The key of the element to add

value
String

The value of the element to add

Add(String, String[])

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

public void Add (string key, string[] value);
Parameters
key
String

The key of the element to add

value
String[]

The value of the element to add

Add(String, TimeSpan)

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

public void Add (string key, TimeSpan value);
Parameters
key
String

The key of the element to add

value
TimeSpan

The value of the element to add

Add(String, TimeSpan[])

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

public void Add (string key, TimeSpan[] value);
Parameters
key
String

The key of the element to add

value
TimeSpan[]

The value of the element to add

Add(String, UInt16)

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

public void Add (string key, ushort value);
Parameters
key
String

The key of the element to add

value
UInt16

The value of the element to add

Add(String, UInt16[])

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

public void Add (string key, ushort[] value);
Parameters
key
String

The key of the element to add

value
UInt16[]

The value of the element to add

Add(String, UInt32)

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

public void Add (string key, uint value);
Parameters
key
String

The key of the element to add

value
UInt32

The value of the element to add

Add(String, UInt32[])

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

public void Add (string key, uint[] value);
Parameters
key
String

The key of the element to add

value
UInt32[]

The value of the element to add

Add(String, UInt64)

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

public void Add (string key, ulong value);
Parameters
key
String

The key of the element to add

value
UInt64

The value of the element to add

Add(String, UInt64[])

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

public void Add (string key, ulong[] value);
Parameters
key
String

The key of the element to add

value
UInt64[]

The value of the element to add

Add(String, Uri)

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

public void Add (string key, Uri value);
Parameters
key
String

The key of the element to add

value
Uri

The value of the element to add

Add(String, Uri[])

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

public void Add (string key, Uri[] value);
Parameters
key
String

The key of the element to add

value
Uri[]

The value of the element to add

Add(String, Version)

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

public void Add (string key, Version value);
Parameters
key
String

The key of the element to add

value
Version

The value of the element to add

Add(String, Version[])

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

public void Add (string key, Version[] value);
Parameters
key
String

The key of the element to add

value
Version[]

The value of the element to add

Add(String, SByte)

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

public void Add (string key, sbyte value);
Parameters
key
String

The key of the element to add

value
SByte

The value of the element to add

Add(String, PSPrimitiveDictionary[])

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

public void Add (string key, System.Management.Automation.PSPrimitiveDictionary[] value);
Parameters
key
String

The key of the element to add

value
PSPrimitiveDictionary[]

The value of the element to add

Add(String, PSPrimitiveDictionary)

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

public void Add (string key, System.Management.Automation.PSPrimitiveDictionary value);
Parameters
key
String

The key of the element to add

value
PSPrimitiveDictionary

The value of the element to add

Add(String, Int64[])

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

public void Add (string key, long[] value);
Parameters
key
String

The key of the element to add

value
Int64[]

The value of the element to add

Add(Object, Object)

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

public override void Add (object key, object value);
Parameters
key
Object

The key of the element to add

value
Object

The value of the element to add

Exceptions

This method will throw if the key is not a string and the value is not one of primitive types that will work during PowerShell remoting handshake. Use of strongly-typed overloads of this method is suggested if throwing an exception is not acceptable.

Add(String, Boolean)

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

public void Add (string key, bool value);
Parameters
key
String

The key of the element to add

value
Boolean

The value of the element to add

Add(String, Boolean[])

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

public void Add (string key, bool[] value);
Parameters
key
String

The key of the element to add

value
Boolean[]

The value of the element to add

Add(String, Byte)

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

public void Add (string key, byte value);
Parameters
key
String

The key of the element to add

value
Byte

The value of the element to add

Add(String, Byte[])

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

public void Add (string key, byte[] value);
Parameters
key
String

The key of the element to add

value
Byte[]

The value of the element to add

Add(String, Char)

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

public void Add (string key, char value);
Parameters
key
String

The key of the element to add

value
Char

The value of the element to add

Add(String, Char[])

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

public void Add (string key, char[] value);
Parameters
key
String

The key of the element to add

value
Char[]

The value of the element to add

Add(String, DateTime)

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

public void Add (string key, DateTime value);
Parameters
key
String

The key of the element to add

value
DateTime

The value of the element to add

Add(String, DateTime[])

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

public void Add (string key, DateTime[] value);
Parameters
key
String

The key of the element to add

value
DateTime[]

The value of the element to add

Add(String, Decimal[])

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

public void Add (string key, decimal[] value);
Parameters
key
String

The key of the element to add

value
Decimal[]

The value of the element to add

Add(String, Double)

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

public void Add (string key, double value);
Parameters
key
String

The key of the element to add

value
Double

The value of the element to add

Add(String, Double[])

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

public void Add (string key, double[] value);
Parameters
key
String

The key of the element to add

value
Double[]

The value of the element to add

Add(String, Guid)

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

public void Add (string key, Guid value);
Parameters
key
String

The key of the element to add

value
Guid

The value of the element to add

Add(String, Guid[])

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

public void Add (string key, Guid[] value);
Parameters
key
String

The key of the element to add

value
Guid[]

The value of the element to add

Add(String, Int32)

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

public void Add (string key, int value);
Parameters
key
String

The key of the element to add

value
Int32

The value of the element to add

Add(String, Int32[])

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

public void Add (string key, int[] value);
Parameters
key
String

The key of the element to add

value
Int32[]

The value of the element to add

Add(String, Int64)

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

public void Add (string key, long value);
Parameters
key
String

The key of the element to add

value
Int64

The value of the element to add

Add(String, Decimal)

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

public void Add (string key, decimal value);
Parameters
key
String

The key of the element to add

value
Decimal

The value of the element to add