Share via


TelemetryConfiguration.InstrumentationKey プロパティ

定義

注意事項

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

アプリケーションの既定のインストルメンテーション キーを取得または設定します。

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

プロパティ値

属性

例外

新しい値は null です。

注釈

このインストルメンテーション キー値は、アプリケーションで作成されたすべての TelemetryClient インスタンスで既定で使用されます。 この値は、 の ContextプロパティをInstrumentationKey設定することで上書きできます。

適用対象