INameObjectCollection.Add(String, Object) Method

Definition

Adds an entry with the specified key and value into the collection.

public:
 void Add(System::String ^ name, System::Object ^ value);
public void Add (string name, object value);
abstract member Add : string * obj -> unit
Public Sub Add (name As String, value As Object)

Parameters

name
String

A String string key of the entry used to add. The key can be null.

value
Object

The object value of the entry used to add. The value can be null.

Applies to