TelemetryConfiguration.InstrumentationKey Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
Azure SDK for .NET