FormatReadSettings.Add(String, Object) Method

Definition

Adds an element with the provided key and value to the System.Collections.Generic.IDictionary`2.

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
System.String

The object to use as the key of the element to add.

value
System.Object

The object to use as the value of the element to add.

Implements

System.Collections.Generic.IDictionary`2.Add(`0,`1)

Exceptions

System.ArgumentNullException

key is null.

System.ArgumentException

An element with the same key already exists in the System.Collections.Generic.IDictionary`2.

System.NotSupportedException

The System.Collections.Generic.IDictionary`2 is read-only.

Applies to