TelemetryClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TelemetryClient() |
Obsolete.
Initializes a new instance of the TelemetryClient class. Send telemetry with the active configuration, usually loaded from ApplicationInsights.config. |
TelemetryClient(TelemetryConfiguration) |
Initializes a new instance of the TelemetryClient class. Send telemetry with the specified |
TelemetryClient()
Caution
We do not recommend using TelemetryConfiguration.Active on .NET Core. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/1152 for more details
Initializes a new instance of the TelemetryClient class. Send telemetry with the active configuration, usually loaded from ApplicationInsights.config.
[System.Obsolete("We do not recommend using TelemetryConfiguration.Active on .NET Core. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/1152 for more details")]
public TelemetryClient ();
Public Sub New ()
- Attributes
Applies to
TelemetryClient(TelemetryConfiguration)
Initializes a new instance of the TelemetryClient class. Send telemetry with the specified configuration
.
public TelemetryClient (Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration);
new Microsoft.ApplicationInsights.TelemetryClient : Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration -> Microsoft.ApplicationInsights.TelemetryClient
Public Sub New (configuration As TelemetryConfiguration)
Parameters
- configuration
- TelemetryConfiguration
Exceptions
The configuration
is null.
The configuration
does not contain a telemetry channel.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기