TelemetryConfiguration.ContextInitializers Property
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.
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.