ServiceHealthDataCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.