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.

C#
public void Add(string key, string value);

Parameters

key
String

The key that identifies the data.

value
String

The data.

Exceptions

key is null.

Applies to

.NET Framework 4.8.1 and .NET Framework 4.8
Product Versions
.NET Framework 4.8, 4.8.1

Add(String, String[])

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

C#
public void Add(string key, string[] values);

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

.NET Framework 4.8.1 and .NET Framework 4.8
Product Versions
.NET Framework 4.8, 4.8.1