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