PropertyDictionary.Add Method
Definition
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.
Adds an element with the provided key and value to the object.
Overloads
Add(String, Type, PropertyCollisionResolution) |
Indicates the property value to be added using PropertyCollisionResolution. |
Add(String, Object, PropertyCollisionResolution) |
Indicates the property value to be added with the key, value, and event specified. |
Add(String, Type) |
Indicates the property value to be added with the name and type specified. |
Add(KeyValuePair<String,Object>, PropertyCollisionResolution) |
Indicates the added value in the dictionary. |
Add(String, Object) |
Adds the specified key and value to the dictionary. |
Add(ISfcProperty, PropertyCollisionResolution) |
Specifies the string value to be added to the dictionary. |
Add(KeyValuePair<String,Object>) |
Indicates a specified string value to be added in the dictionary. |
Add(ISfcProperty) |
Indicates a property to be added in the dictionary. |
Add(IEnumerable<KeyValuePair<String,Object>>, PropertyCollisionResolution) |
Specifies the string inputs to be added to the dictionary. |
Add(String, Type, PropertyCollisionResolution)
Indicates the property value to be added using PropertyCollisionResolution.
public:
virtual void Add(System::String ^ name, Type ^ type, Microsoft::SqlServer::Management::Data::PropertyCollisionResolution collisionResolution);
public void Add (string name, Type type, Microsoft.SqlServer.Management.Data.PropertyCollisionResolution collisionResolution);
abstract member Add : string * Type * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
override this.Add : string * Type * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
Public Sub Add (name As String, type As Type, collisionResolution As PropertyCollisionResolution)
Parameters
- name
- String
A string value that represents the name of the property.
- type
- Type
The type of object in the property.
- collisionResolution
- PropertyCollisionResolution
The event to be used.
Implements
Applies to
Add(String, Object, PropertyCollisionResolution)
Indicates the property value to be added with the key, value, and event specified.
public:
virtual void Add(System::String ^ key, System::Object ^ value, Microsoft::SqlServer::Management::Data::PropertyCollisionResolution collisionResolution);
public void Add (string key, object value, Microsoft.SqlServer.Management.Data.PropertyCollisionResolution collisionResolution);
abstract member Add : string * obj * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
override this.Add : string * obj * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
Public Sub Add (key As String, value As Object, collisionResolution As PropertyCollisionResolution)
Parameters
- key
- String
The key of the element to be added.
- value
- Object
The value of the element to add. The value can be a null reference for reference types.
- collisionResolution
- PropertyCollisionResolution
The event to be used.
Implements
Applies to
Add(String, Type)
Indicates the property value to be added with the name and type specified.
public:
virtual void Add(System::String ^ name, Type ^ type);
public void Add (string name, Type type);
abstract member Add : string * Type -> unit
override this.Add : string * Type -> unit
Public Sub Add (name As String, type As Type)
Parameters
- name
- String
A string value that represents the name of the property.
- type
- Type
The type of object in the property.
Implements
Applies to
Add(KeyValuePair<String,Object>, PropertyCollisionResolution)
Indicates the added value in the dictionary.
public:
virtual void Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item, Microsoft::SqlServer::Management::Data::PropertyCollisionResolution collisionResolution);
public void Add (System.Collections.Generic.KeyValuePair<string,object> item, Microsoft.SqlServer.Management.Data.PropertyCollisionResolution collisionResolution);
abstract member Add : System.Collections.Generic.KeyValuePair<string, obj> * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, obj> * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
Public Sub Add (item As KeyValuePair(Of String, Object), collisionResolution As PropertyCollisionResolution)
Parameters
- item
- KeyValuePair<String,Object>
An interface of the specified string value to be used.
- collisionResolution
- PropertyCollisionResolution
An event to be used.
Implements
Applies to
Add(String, Object)
Adds the specified key and value to the dictionary.
public:
virtual void Add(System::String ^ key, System::Object ^ value);
public void Add (string key, object value);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Public Sub Add (key As String, value As Object)
Parameters
- key
- String
The key of the element to be added.
- value
- Object
The value of the element to add. The value can be a null reference for reference types.
Implements
Applies to
Add(ISfcProperty, PropertyCollisionResolution)
Specifies the string value to be added to the dictionary.
public:
virtual void Add(Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty ^ property, Microsoft::SqlServer::Management::Data::PropertyCollisionResolution collisionResolution);
public void Add (Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty property, Microsoft.SqlServer.Management.Data.PropertyCollisionResolution collisionResolution);
abstract member Add : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
override this.Add : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
Public Sub Add (property As ISfcProperty, collisionResolution As PropertyCollisionResolution)
Parameters
- property
- ISfcProperty
An interface that add properties to the dictionary.
- collisionResolution
- PropertyCollisionResolution
An event to be used.
Implements
Applies to
Add(KeyValuePair<String,Object>)
Indicates a specified string value to be added in the dictionary.
public:
virtual void Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public void Add (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (item As KeyValuePair(Of String, Object))
Parameters
- item
- KeyValuePair<String,Object>
A string value to be added in the dictionary..
Implements
Applies to
Add(ISfcProperty)
Indicates a property to be added in the dictionary.
public:
virtual void Add(Microsoft::SqlServer::Management::Sdk::Sfc::ISfcProperty ^ property);
public void Add (Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty property);
abstract member Add : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty -> unit
override this.Add : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty -> unit
Public Sub Add (property As ISfcProperty)
Parameters
- property
- ISfcProperty
An interface that determines the property to be added.
Implements
Applies to
Add(IEnumerable<KeyValuePair<String,Object>>, PropertyCollisionResolution)
Specifies the string inputs to be added to the dictionary.
public:
virtual void Add(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ items, Microsoft::SqlServer::Management::Data::PropertyCollisionResolution collisionResolution);
public void Add (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> items, Microsoft.SqlServer.Management.Data.PropertyCollisionResolution collisionResolution);
abstract member Add : seq<System.Collections.Generic.KeyValuePair<string, obj>> * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
override this.Add : seq<System.Collections.Generic.KeyValuePair<string, obj>> * Microsoft.SqlServer.Management.Data.PropertyCollisionResolution -> unit
Public Sub Add (items As IEnumerable(Of KeyValuePair(Of String, Object)), collisionResolution As PropertyCollisionResolution)
Parameters
- items
- IEnumerable<KeyValuePair<String,Object>>
An interface of the specified string inputs to be used.
- collisionResolution
- PropertyCollisionResolution
An event to be used.