PSPrimitiveDictionary.Add PSPrimitiveDictionary.Add PSPrimitiveDictionary.Add Method

Definition

Overloads

Add(String, SByte[]) Add(String, SByte[]) Add(String, SByte[])

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

Add(String, Single) Add(String, Single) Add(String, Single)

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

Add(String, Single[]) Add(String, Single[]) Add(String, Single[])

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

Add(String, String) Add(String, String) Add(String, String)

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

Add(String, String[]) Add(String, String[]) Add(String, String[])

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

Add(String, TimeSpan) Add(String, TimeSpan) Add(String, TimeSpan)

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

Add(String, TimeSpan[]) Add(String, TimeSpan[]) Add(String, TimeSpan[])

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

Add(String, UInt16) Add(String, UInt16) Add(String, UInt16)

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

Add(String, UInt16[]) Add(String, UInt16[]) Add(String, UInt16[])

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

Add(String, UInt32) Add(String, UInt32) Add(String, UInt32)

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

Add(String, UInt32[]) Add(String, UInt32[]) Add(String, UInt32[])

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

Add(String, UInt64) Add(String, UInt64) Add(String, UInt64)

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

Add(String, UInt64[]) Add(String, UInt64[]) Add(String, UInt64[])

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

Add(String, Uri) Add(String, Uri) Add(String, Uri)

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

Add(String, Uri[]) Add(String, Uri[]) Add(String, Uri[])

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

Add(String, Version) Add(String, Version) Add(String, Version)

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

Add(String, Version[]) Add(String, Version[]) Add(String, Version[])

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

Add(String, SByte) Add(String, SByte) Add(String, SByte)

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

Add(String, PSPrimitiveDictionary[]) Add(String, PSPrimitiveDictionary[]) Add(String, PSPrimitiveDictionary[])

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

Add(String, PSPrimitiveDictionary) Add(String, PSPrimitiveDictionary) Add(String, PSPrimitiveDictionary)

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

Add(String, Int64[]) Add(String, Int64[]) Add(String, Int64[])

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

Add(Object, Object) Add(Object, Object) Add(Object, Object)

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

Add(String, Boolean) Add(String, Boolean) Add(String, Boolean)

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

Add(String, Boolean[]) Add(String, Boolean[]) Add(String, Boolean[])

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

Add(String, Byte) Add(String, Byte) Add(String, Byte)

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

Add(String, Byte[]) Add(String, Byte[]) Add(String, Byte[])

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

Add(String, Char) Add(String, Char) Add(String, Char)

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

Add(String, Char[]) Add(String, Char[]) Add(String, Char[])

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

Add(String, DateTime) Add(String, DateTime) Add(String, DateTime)

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

Add(String, DateTime[]) Add(String, DateTime[]) Add(String, DateTime[])

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

Add(String, Decimal[]) Add(String, Decimal[]) Add(String, Decimal[])

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

Add(String, Double) Add(String, Double) Add(String, Double)

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

Add(String, Double[]) Add(String, Double[]) Add(String, Double[])

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

Add(String, Guid) Add(String, Guid) Add(String, Guid)

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

Add(String, Guid[]) Add(String, Guid[]) Add(String, Guid[])

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

Add(String, Int32) Add(String, Int32) Add(String, Int32)

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

Add(String, Int32[]) Add(String, Int32[]) Add(String, Int32[])

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

Add(String, Int64) Add(String, Int64) Add(String, Int64)

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

Add(String, Decimal) Add(String, Decimal) Add(String, Decimal)

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

Add(String, SByte[]) Add(String, SByte[]) Add(String, SByte[])

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

public void Add (string key, sbyte[] value);
member this.Add : string * sbyte[] -> unit
Public Sub Add (key As String, value As SByte())
Parameters
key
String String String

The key of the element to add

value
SByte[]

The value of the element to add

Add(String, Single) Add(String, Single) Add(String, Single)

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

public void Add (string key, float value);
member this.Add : string * single -> unit
Public Sub Add (key As String, value As Single)
Parameters
key
String String String

The key of the element to add

value
Single Single Single

The value of the element to add

Add(String, Single[]) Add(String, Single[]) Add(String, Single[])

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

public void Add (string key, float[] value);
member this.Add : string * single[] -> unit
Public Sub Add (key As String, value As Single())
Parameters
key
String String String

The key of the element to add

value
Single[]

The value of the element to add

Add(String, String) Add(String, String) Add(String, String)

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

public void Add (string key, string value);
member this.Add : string * string -> unit
Public Sub Add (key As String, value As String)
Parameters
key
String String String

The key of the element to add

value
String String String

The value of the element to add

Add(String, String[]) Add(String, String[]) Add(String, String[])

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

public void Add (string key, string[] value);
member this.Add : string * string[] -> unit
Public Sub Add (key As String, value As String())
Parameters
key
String String String

The key of the element to add

value
String[]

The value of the element to add

Add(String, TimeSpan) Add(String, TimeSpan) Add(String, TimeSpan)

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

public void Add (string key, TimeSpan value);
member this.Add : string * TimeSpan -> unit
Public Sub Add (key As String, value As TimeSpan)
Parameters
key
String String String

The key of the element to add

value
TimeSpan TimeSpan TimeSpan

The value of the element to add

Add(String, TimeSpan[]) Add(String, TimeSpan[]) Add(String, TimeSpan[])

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

public void Add (string key, TimeSpan[] value);
member this.Add : string * TimeSpan[] -> unit
Public Sub Add (key As String, value As TimeSpan())
Parameters
key
String String String

The key of the element to add

value
TimeSpan[]

The value of the element to add

Add(String, UInt16) Add(String, UInt16) Add(String, UInt16)

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

public void Add (string key, ushort value);
member this.Add : string * uint16 -> unit
Public Sub Add (key As String, value As UShort)
Parameters
key
String String String

The key of the element to add

value
UInt16 UInt16 UInt16

The value of the element to add

Add(String, UInt16[]) Add(String, UInt16[]) Add(String, UInt16[])

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

public void Add (string key, ushort[] value);
member this.Add : string * uint16[] -> unit
Public Sub Add (key As String, value As UShort())
Parameters
key
String String String

The key of the element to add

value
UInt16[]

The value of the element to add

Add(String, UInt32) Add(String, UInt32) Add(String, UInt32)

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

public void Add (string key, uint value);
member this.Add : string * uint32 -> unit
Public Sub Add (key As String, value As UInteger)
Parameters
key
String String String

The key of the element to add

value
UInt32 UInt32 UInt32

The value of the element to add

Add(String, UInt32[]) Add(String, UInt32[]) Add(String, UInt32[])

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

public void Add (string key, uint[] value);
member this.Add : string * uint32[] -> unit
Public Sub Add (key As String, value As UInteger())
Parameters
key
String String String

The key of the element to add

value
UInt32[]

The value of the element to add

Add(String, UInt64) Add(String, UInt64) Add(String, UInt64)

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

public void Add (string key, ulong value);
member this.Add : string * uint64 -> unit
Public Sub Add (key As String, value As ULong)
Parameters
key
String String String

The key of the element to add

value
UInt64 UInt64 UInt64

The value of the element to add

Add(String, UInt64[]) Add(String, UInt64[]) Add(String, UInt64[])

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

public void Add (string key, ulong[] value);
member this.Add : string * uint64[] -> unit
Public Sub Add (key As String, value As ULong())
Parameters
key
String String String

The key of the element to add

value
UInt64[]

The value of the element to add

Add(String, Uri) Add(String, Uri) Add(String, Uri)

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

public void Add (string key, Uri value);
member this.Add : string * Uri -> unit
Public Sub Add (key As String, value As Uri)
Parameters
key
String String String

The key of the element to add

value
Uri Uri Uri

The value of the element to add

Add(String, Uri[]) Add(String, Uri[]) Add(String, Uri[])

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

public void Add (string key, Uri[] value);
member this.Add : string * Uri[] -> unit
Public Sub Add (key As String, value As Uri())
Parameters
key
String String String

The key of the element to add

value
Uri[]

The value of the element to add

Add(String, Version) Add(String, Version) Add(String, Version)

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

public void Add (string key, Version value);
member this.Add : string * Version -> unit
Public Sub Add (key As String, value As Version)
Parameters
key
String String String

The key of the element to add

value
Version Version Version

The value of the element to add

Add(String, Version[]) Add(String, Version[]) Add(String, Version[])

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

public void Add (string key, Version[] value);
member this.Add : string * Version[] -> unit
Public Sub Add (key As String, value As Version())
Parameters
key
String String String

The key of the element to add

value
Version[]

The value of the element to add

Add(String, SByte) Add(String, SByte) Add(String, SByte)

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

public void Add (string key, sbyte value);
member this.Add : string * sbyte -> unit
Public Sub Add (key As String, value As SByte)
Parameters
key
String String String

The key of the element to add

value
SByte SByte SByte

The value of the element to add

Add(String, PSPrimitiveDictionary[]) Add(String, PSPrimitiveDictionary[]) 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);
member this.Add : string * System.Management.Automation.PSPrimitiveDictionary[] -> unit
Public Sub Add (key As String, value As PSPrimitiveDictionary())
Parameters
key
String String String

The key of the element to add

value
PSPrimitiveDictionary[]

The value of the element to add

Add(String, PSPrimitiveDictionary) Add(String, PSPrimitiveDictionary) 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);
member this.Add : string * System.Management.Automation.PSPrimitiveDictionary -> unit
Public Sub Add (key As String, value As PSPrimitiveDictionary)
Parameters
key
String String String

The key of the element to add

value
PSPrimitiveDictionary PSPrimitiveDictionary PSPrimitiveDictionary

The value of the element to add

Add(String, Int64[]) Add(String, Int64[]) Add(String, Int64[])

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

public void Add (string key, long[] value);
member this.Add : string * int64[] -> unit
Public Sub Add (key As String, value As Long())
Parameters
key
String String String

The key of the element to add

value
Int64[]

The value of the element to add

Add(Object, Object) Add(Object, Object) Add(Object, Object)

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

public override void Add (object key, object value);
abstract member Add : obj * obj -> unit
override this.Add : obj * obj -> unit
Public Overrides Sub Add (key As Object, value As Object)
Parameters
key
Object Object Object

The key of the element to add

value
Object Object 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) Add(String, Boolean) Add(String, Boolean)

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

public void Add (string key, bool value);
member this.Add : string * bool -> unit
Public Sub Add (key As String, value As Boolean)
Parameters
key
String String String

The key of the element to add

value
Boolean Boolean Boolean

The value of the element to add

Add(String, Boolean[]) Add(String, Boolean[]) Add(String, Boolean[])

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

public void Add (string key, bool[] value);
member this.Add : string * bool[] -> unit
Public Sub Add (key As String, value As Boolean())
Parameters
key
String String String

The key of the element to add

value
Boolean[]

The value of the element to add

Add(String, Byte) Add(String, Byte) Add(String, Byte)

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

public void Add (string key, byte value);
member this.Add : string * byte -> unit
Public Sub Add (key As String, value As Byte)
Parameters
key
String String String

The key of the element to add

value
Byte Byte Byte

The value of the element to add

Add(String, Byte[]) Add(String, Byte[]) Add(String, Byte[])

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

public void Add (string key, byte[] value);
member this.Add : string * byte[] -> unit
Public Sub Add (key As String, value As Byte())
Parameters
key
String String String

The key of the element to add

value
Byte[]

The value of the element to add

Add(String, Char) Add(String, Char) Add(String, Char)

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

public void Add (string key, char value);
member this.Add : string * char -> unit
Public Sub Add (key As String, value As Char)
Parameters
key
String String String

The key of the element to add

value
Char Char Char

The value of the element to add

Add(String, Char[]) Add(String, Char[]) Add(String, Char[])

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

public void Add (string key, char[] value);
member this.Add : string * char[] -> unit
Public Sub Add (key As String, value As Char())
Parameters
key
String String String

The key of the element to add

value
Char[]

The value of the element to add

Add(String, DateTime) Add(String, DateTime) Add(String, DateTime)

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

public void Add (string key, DateTime value);
member this.Add : string * DateTime -> unit
Public Sub Add (key As String, value As DateTime)
Parameters
key
String String String

The key of the element to add

value
DateTime DateTime DateTime

The value of the element to add

Add(String, DateTime[]) Add(String, DateTime[]) Add(String, DateTime[])

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

public void Add (string key, DateTime[] value);
member this.Add : string * DateTime[] -> unit
Public Sub Add (key As String, value As DateTime())
Parameters
key
String String String

The key of the element to add

value
DateTime[]

The value of the element to add

Add(String, Decimal[]) Add(String, Decimal[]) Add(String, Decimal[])

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

public void Add (string key, decimal[] value);
member this.Add : string * decimal[] -> unit
Public Sub Add (key As String, value As Decimal())
Parameters
key
String String String

The key of the element to add

value
Decimal[]

The value of the element to add

Add(String, Double) Add(String, Double) Add(String, Double)

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

public void Add (string key, double value);
member this.Add : string * double -> unit
Public Sub Add (key As String, value As Double)
Parameters
key
String String String

The key of the element to add

value
Double Double Double

The value of the element to add

Add(String, Double[]) Add(String, Double[]) Add(String, Double[])

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

public void Add (string key, double[] value);
member this.Add : string * double[] -> unit
Public Sub Add (key As String, value As Double())
Parameters
key
String String String

The key of the element to add

value
Double[]

The value of the element to add

Add(String, Guid) Add(String, Guid) Add(String, Guid)

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

public void Add (string key, Guid value);
member this.Add : string * Guid -> unit
Public Sub Add (key As String, value As Guid)
Parameters
key
String String String

The key of the element to add

value
Guid Guid Guid

The value of the element to add

Add(String, Guid[]) Add(String, Guid[]) Add(String, Guid[])

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

public void Add (string key, Guid[] value);
member this.Add : string * Guid[] -> unit
Public Sub Add (key As String, value As Guid())
Parameters
key
String String String

The key of the element to add

value
Guid[]

The value of the element to add

Add(String, Int32) Add(String, Int32) Add(String, Int32)

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

public void Add (string key, int value);
member this.Add : string * int -> unit
Public Sub Add (key As String, value As Integer)
Parameters
key
String String String

The key of the element to add

value
Int32 Int32 Int32

The value of the element to add

Add(String, Int32[]) Add(String, Int32[]) Add(String, Int32[])

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

public void Add (string key, int[] value);
member this.Add : string * int[] -> unit
Public Sub Add (key As String, value As Integer())
Parameters
key
String String String

The key of the element to add

value
Int32[]

The value of the element to add

Add(String, Int64) Add(String, Int64) Add(String, Int64)

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

public void Add (string key, long value);
member this.Add : string * int64 -> unit
Public Sub Add (key As String, value As Long)
Parameters
key
String String String

The key of the element to add

value
Int64 Int64 Int64

The value of the element to add

Add(String, Decimal) Add(String, Decimal) Add(String, Decimal)

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

public void Add (string key, decimal value);
member this.Add : string * decimal -> unit
Public Sub Add (key As String, value As Decimal)
Parameters
key
String String String

The key of the element to add

value
Decimal Decimal Decimal

The value of the element to add

Applies to