Udostępnij za pośrednictwem


TelemetryClient Constructors

Definition

Overloads

TelemetryClient()

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()

Initializes a new instance of the TelemetryClient class. Send telemetry with the active configuration, usually loaded from ApplicationInsights.config.

public:
 TelemetryClient();
public TelemetryClient ();
Public Sub New ()

Applies to

TelemetryClient(TelemetryConfiguration)

Initializes a new instance of the TelemetryClient class. Send telemetry with the specified configuration.

public:
 TelemetryClient(Microsoft::VisualStudio::ApplicationInsights::Extensibility::TelemetryConfiguration ^ configuration);
public TelemetryClient (Microsoft.VisualStudio.ApplicationInsights.Extensibility.TelemetryConfiguration configuration);
new Microsoft.VisualStudio.ApplicationInsights.TelemetryClient : Microsoft.VisualStudio.ApplicationInsights.Extensibility.TelemetryConfiguration -> Microsoft.VisualStudio.ApplicationInsights.TelemetryClient
Public Sub New (configuration As TelemetryConfiguration)

Parameters

configuration
TelemetryConfiguration

Exceptions

The configuration is null.

Applies to