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

TelemetryClient(TelemetryConfiguration)

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

public TelemetryClient (Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration);
Parameters
configuration
TelemetryConfiguration
Exceptions

The configuration is null.

The configuration does not contain a telemetry channel.