你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TelemetryConfiguration 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TelemetryConfiguration(String) |
已过时.
初始化 TelemetryConfiguration 类的新实例。 |
TelemetryConfiguration(String, ITelemetryChannel) |
已过时.
初始化 TelemetryConfiguration 类的新实例。 |
TelemetryConfiguration(String)
注意
InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.
初始化 TelemetryConfiguration 类的新实例。
[System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration(string instrumentationKey);
[<System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")>]
new Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration : string -> Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
Public Sub New (instrumentationKey As String)
参数
- instrumentationKey
- String
此配置实例将提供的检测密钥。
- 属性
适用于
TelemetryConfiguration(String, ITelemetryChannel)
注意
InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.
初始化 TelemetryConfiguration 类的新实例。
[System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration(string instrumentationKey, Microsoft.ApplicationInsights.Channel.ITelemetryChannel channel);
[<System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")>]
new Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration : string * Microsoft.ApplicationInsights.Channel.ITelemetryChannel -> Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
Public Sub New (instrumentationKey As String, channel As ITelemetryChannel)
参数
- instrumentationKey
- String
此配置实例将提供的检测密钥。
- channel
- ITelemetryChannel
要随此配置实例一起提供的遥测通道。
- 属性