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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin