Compartir a través de


TelemetryConfiguration.InstrumentationKey Propiedad

Definición

Precaución

InstrumentationKey based global ingestion is being deprecated. Use TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.

Obtiene o establece la clave de instrumentación predeterminada para la aplicación.

public string InstrumentationKey { get; [System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")] set; }
[<set: System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")>]
member this.InstrumentationKey : string with get, set
Public Property InstrumentationKey As String

Valor de propiedad

Atributos

Excepciones

El nuevo valor es NULL.

Comentarios

De forma predeterminada, todas las TelemetryClient instancias creadas en la aplicación usan este valor de clave de instrumentación. Este valor se puede sobrescribir estableciendo la InstrumentationKey propiedad de Context.

Se aplica a