[]
Adds a data source to this DataSourceDictionary.
public void Add(string key, object value)
| 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)
| 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)
| Type | Name | Description |
|---|---|---|
| KeyValuePair<string, object> | item |