次の方法で共有


TelemetryConfiguration.ContextInitializers Property

Definition

Gets the list of IContextInitializer objects that supply additional information about application.

public:
 property System::Collections::Generic::IList<Microsoft::VisualStudio::ApplicationInsights::Extensibility::IContextInitializer ^> ^ ContextInitializers { System::Collections::Generic::IList<Microsoft::VisualStudio::ApplicationInsights::Extensibility::IContextInitializer ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.VisualStudio.ApplicationInsights.Extensibility.IContextInitializer> ContextInitializers { get; }
member this.ContextInitializers : System.Collections.Generic.IList<Microsoft.VisualStudio.ApplicationInsights.Extensibility.IContextInitializer>
Public ReadOnly Property ContextInitializers As IList(Of IContextInitializer)

Property Value

Remarks

Context initializers extend Application Insights telemetry collection by supplying additional information about application environment, such as User or Device information that remains constant during application lifetime. A TelemetryClient invokes context initializers to obtain initial property values for TelemetryContext object during its construction. The default list of context initializers is provided by the Application Insights NuGet packages and loaded from the ApplicationInsights.config file located in the application directory.

Applies to