Microsoft.ApplicationInsights.DataContracts.TelemetryContext
Represents a context for sending telemetry to the Application Insights service.
Learn more
namespace Microsoft.ApplicationInsights.DataContracts
{
public sealed class TelemetryContext
{
public const long FlagDropIdentifiers = 2097152;
public string InstrumentationKey { get; set; }
public long Flags { get; set; }
public ComponentContext Component { get; }
public DeviceContext Device { get; }
public CloudContext Cloud { get; }
public SessionContext Session { get; }
public UserContext User { get; }
public OperationContext Operation { get; }
public LocationContext Location { get; }
public IDictionary<string, string> Properties { get; }
public IDictionary<string, string> GlobalProperties { get; }
public TelemetryContext();
public bool TryGetRawObject(string key, out object rawObject);
public void StoreRawObject(string key, object rawObject, bool keepForInitializationOnly = true);
}
}