Share via


IdentityModelTelemetryUtil.AddTelemetryData(String, String) Method

Definition

Adds a key and its value to the collection of telemetry data.

public static bool AddTelemetryData (string key, string value);
static member AddTelemetryData : string * string -> bool
Public Shared Function AddTelemetryData (key As String, value As String) As Boolean

Parameters

key
String

The name of the telemetry.

value
String

The value of the telemetry.

Returns

true if the key is successfully added; otherwise, false.

Applies to