Κοινή χρήση μέσω


TelemetryClient Constructors

Definition

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 configuration.

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