你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TelemetryContext.InstrumentationKey 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置此 TelemetryContext中记录的所有ITelemetry对象的默认检测密钥。
public string InstrumentationKey { get; set; }
member this.InstrumentationKey : string with get, set
Public Property InstrumentationKey As String
属性值
注解
默认情况下,此属性使用 InstrumentationKey 实例TelemetryConfiguration的值Active进行初始化。 可以为通过特定或ITelemetry特定TelemetryClient实例跟踪的所有遥测指定它。