Redigera

Dela via


ServiceHealthDataCollection.Add Method

Definition

Overloads

Add(String, String)

Adds a new key and value pair to the collection.

Add(String, String[])

Adds a new key and array of values to the collection.

Add(String, String)

Adds a new key and value pair to the collection.

public:
 void Add(System::String ^ key, System::String ^ value);
public void Add (string key, string value);
override this.Add : string * string -> unit
Public Sub Add (key As String, value As String)

Parameters

key
String

The key that identifies the data.

value
String

The data.

Exceptions

key is null.

Applies to

Add(String, String[])

Adds a new key and array of values to the collection.

public:
 void Add(System::String ^ key, cli::array <System::String ^> ^ values);
public void Add (string key, string[] values);
override this.Add : string * string[] -> unit
Public Sub Add (key As String, values As String())

Parameters

key
String

The key that identifies the data.

values
String[]

An array of values that are associated with key.

Exceptions

key is null.

Applies to