Method Add
Add(String, Nullable<Int32>)
Adds integer value against a key in named tags dictionary.
Declaration
public void Add(string key, int? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Int32> | value | integer Value of an item |
Examples
Adding named tag of integer type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Nullable<Int16>)
Adds short value against a key in named tags dictionary.
Declaration
public void Add(string key, short? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Int16> | value | short Value of an item |
Examples
Adding named tag of short type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Nullable<Byte>)
Adds byte value against a key in named tags dictionary.
Declaration
public void Add(string key, byte? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Byte> | value | byte Value of an item |
Examples
Adding named tag of byte type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Nullable<Int64>)
Adds long value against a key in named tags dictionary.
Declaration
public void Add(string key, long? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Int64> | value | long Value of an item |
Examples
Adding named tag of long type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", long.MaxValue);
Add(String, Nullable<Single>)
Adds float value against a key in named tags dictionary.
Declaration
public void Add(string key, float? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Single> | value | float Value of an item |
Examples
Adding named tag of float type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", float.MaxValue);
Add(String, Nullable<Double>)
Adds double value against a key in named tags dictionary.
Declaration
public void Add(string key, double? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Double> | value | double Value of an item |
Examples
Adding named tag of double type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", double.MaxValue);
Add(String, Nullable<Decimal>)
Adds decimal value against a key in named tags dictionary.
Declaration
public void Add(string key, decimal? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Decimal> | value | Decimal Value of an item |
Examples
Adding named tag of decimal type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", decimal.MaxValue);
Add(String, String)
Adds string value against a key in named tags dictionary.
Declaration
public void Add(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.String | value | string Value of an item |
Examples
Adding named tag of string type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", "Tag1_Value");
Add(String, Nullable<Char>)
Adds character value against a key in named tags dictionary.
Declaration
public void Add(string key, char? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Char> | value | char Value of an item |
Examples
Adding named tag of character type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", 'a');
Add(String, Nullable<Boolean>)
Adds boolean value against a key in named tags dictionary.
Declaration
public void Add(string key, bool? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.Boolean> | value | bool Value of an item |
Examples
Adding named tag of bool type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", false);
Add(String, Nullable<DateTime>)
Adds DateTime value against a key in named tags dictionary.
Declaration
public void Add(string key, DateTime? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.DateTime> | value | DateTime Value of an item |
Examples
Adding named tag of DateTime type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", DateTime.Now);
Add(String, Nullable<SByte>)
Adds sbyte value against a key in named tags dictionary.
Declaration
public void Add(string key, sbyte? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.SByte> | value | sbyte Value of an item |
Examples
Adding named tag of sbyte type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", sbyte.MaxValue);
Add(String, Nullable<UInt32>)
Adds uint value against a key in named tags dictionary.
Declaration
public void Add(string key, uint? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.UInt32> | value | uint Value of an item |
Examples
Adding named tag of uint type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", uint.MaxValue);
Add(String, Nullable<UInt64>)
Adds ulong value against a key in named tags dictionary.
Declaration
public void Add(string key, ulong? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.UInt64> | value | ulong Value of an item |
Examples
Adding named tag of ulong type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", ulong.MaxValue);
Add(String, Nullable<UInt16>)
Adds ushort value against a key in named tags dictionary.
Declaration
public void Add(string key, ushort? value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Nullable<System.UInt16> | value | ushort Value of an item |
Examples
Adding named tag of ushort type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", ushort.MaxValue);
Add(String, Int32)
Adds integer value against a key in named tags dictionary.
Declaration
public void Add(string key, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Int32 | value | integer Value of an item |
Examples
Adding named tag of integer type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Int16)
Adds short value against a key in named tags dictionary.
Declaration
public void Add(string key, short value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Int16 | value | short Value of an item |
Examples
Adding named tag of short type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Byte)
Adds byte value against a key in named tags dictionary.
Declaration
public void Add(string key, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Byte | value | byte Value of an item |
Examples
Adding named tag of byte type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", int.MaxValue);
Add(String, Int64)
Adds long value against a key in named tags dictionary.
Declaration
public void Add(string key, long value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Int64 | value | long Value of an item |
Examples
Adding named tag of long type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", long.MaxValue);
Add(String, Single)
Adds float value against a key in named tags dictionary.
Declaration
public void Add(string key, float value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Single | value | float Value of an item |
Examples
Adding named tag of float type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", float.MaxValue);
Add(String, Double)
Adds double value against a key in named tags dictionary.
Declaration
public void Add(string key, double value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Double | value | double Value of an item |
Examples
Adding named tag of double type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", double.MaxValue);
Add(String, Decimal)
Adds decimal value against a key in named tags dictionary.
Declaration
public void Add(string key, decimal value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Decimal | value | Decimal Value of an item |
Examples
Adding named tag of decimal type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", decimal.MaxValue);
Add(String, Char)
Adds character value against a key in named tags dictionary.
Declaration
public void Add(string key, char value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Char | value | char Value of an item |
Examples
Adding named tag of character type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", 'a');
Add(String, Boolean)
Adds boolean value against a key in named tags dictionary.
Declaration
public void Add(string key, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.Boolean | value | bool Value of an item |
Examples
Adding named tag of bool type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", false);
Add(String, DateTime)
Adds DateTime value against a key in named tags dictionary.
Declaration
public void Add(string key, DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.DateTime | value | DateTime Value of an item |
Examples
Adding named tag of DateTime type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", DateTime.Now);
Add(String, SByte)
Adds sbyte value against a key in named tags dictionary.
Declaration
public void Add(string key, sbyte value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.SByte | value | sbyte Value of an item |
Examples
Adding named tag of sbyte type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", sbyte.MaxValue);
Add(String, UInt32)
Adds uint value against a key in named tags dictionary.
Declaration
public void Add(string key, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.UInt32 | value | uint Value of an item |
Examples
Adding named tag of uint type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", uint.MaxValue);
Add(String, UInt64)
Adds ulong value against a key in named tags dictionary.
Declaration
public void Add(string key, ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.UInt64 | value | ulong Value of an item |
Examples
Adding named tag of ulong type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", ulong.MaxValue);
Add(String, UInt16)
Adds ushort value against a key in named tags dictionary.
Declaration
public void Add(string key, ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of an item |
System.UInt16 | value | ushort Value of an item |
Examples
Adding named tag of ushort type
NamedTagsDictionary tags = new NamedTagsDictionary();
tags.Add("Tag1", ushort.MaxValue);