共用方式為


TelemetryConfiguration Constructors

Definition

Overloads

TelemetryConfiguration(String)
Obsolete.

Initializes a new instance of the TelemetryConfiguration class.

TelemetryConfiguration(String, ITelemetryChannel)
Obsolete.

Initializes a new instance of the TelemetryConfiguration class.

TelemetryConfiguration(String)

Caution

InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.

Initializes a new instance of the TelemetryConfiguration class.

[System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration (string instrumentationKey);
[<System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")>]
new Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration : string -> Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
Public Sub New (instrumentationKey As String)

Parameters

instrumentationKey
String

The instrumentation key this configuration instance will provide.

Attributes

Applies to

TelemetryConfiguration(String, ITelemetryChannel)

Caution

InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.

Initializes a new instance of the TelemetryConfiguration class.

[System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")]
public TelemetryConfiguration (string instrumentationKey, Microsoft.ApplicationInsights.Channel.ITelemetryChannel channel);
[<System.Obsolete("InstrumentationKey based global ingestion is being deprecated. Use the default constructor and manually set TelemetryConfiguration.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.")>]
new Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration : string * Microsoft.ApplicationInsights.Channel.ITelemetryChannel -> Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
Public Sub New (instrumentationKey As String, channel As ITelemetryChannel)

Parameters

instrumentationKey
String

The instrumentation key this configuration instance will provide.

channel
ITelemetryChannel

The telemetry channel to provide with this configuration instance.

Attributes

Applies to