[]
Adds a data source to this DataSourceDictionary.
public void Add(string key, object value)
Public Sub Add(key As String, value As Object)
Type | Name | Description |
---|---|---|
string | key | The key (name) of the data source to add. |
object | value | The data source to add. |
Adds a data source to this DataSourceDictionary.
public void Add(string key, object value, CultureInfo culture)
Public Sub Add(key As String, value As Object, culture As CultureInfo)
Type | Name | Description |
---|---|---|
string | key | The key (name) of the data source to add. |
object | value | The data source to add. |
CultureInfo | culture | The culture to use when parsing or formatting data from the added data source. |
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException | An element with the same key already exists in the DataSourceDictionary. |
public void Add(KeyValuePair<string, object> item)
Public Sub Add(item As KeyValuePair(Of String, Object))
Type | Name | Description |
---|---|---|
KeyValuePair<string, object> | item |