Table of Contents

Class TelemetryContext

Namespace
Microsoft.ApplicationInsights.DataContracts
Assembly
Microsoft.ApplicationInsights.dll
public sealed class TelemetryContext
Inheritance
TelemetryContext
Inherited Members
Extension Methods

Constructors

TelemetryContext()

public TelemetryContext()

Fields

FlagDropIdentifiers

public const long FlagDropIdentifiers = 2097152

Field Value

long

Properties

Cloud

public CloudContext Cloud { get; }

Property Value

CloudContext

Component

public ComponentContext Component { get; }

Property Value

ComponentContext

Device

public DeviceContext Device { get; }

Property Value

DeviceContext

Flags

public long Flags { get; set; }

Property Value

long

GlobalProperties

public IDictionary<string, string> GlobalProperties { get; }

Property Value

IDictionary<string, string>

InstrumentationKey

public string InstrumentationKey { get; set; }

Property Value

string

Location

public LocationContext Location { get; }

Property Value

LocationContext

Operation

public OperationContext Operation { get; }

Property Value

OperationContext

Properties

[Obsolete("Use GlobalProperties to set global level properties. For properties at item level, use ISupportProperties.Properties.")]
public IDictionary<string, string> Properties { get; }

Property Value

IDictionary<string, string>

Session

public SessionContext Session { get; }

Property Value

SessionContext

User

public UserContext User { get; }

Property Value

UserContext

Methods

StoreRawObject(string, object, bool)

public void StoreRawObject(string key, object rawObject, bool keepForInitializationOnly = true)

Parameters

key string
rawObject object
keepForInitializationOnly bool

TryGetRawObject(string, out object)

public bool TryGetRawObject(string key, out object rawObject)

Parameters

key string
rawObject object

Returns

bool