ClientAnalyticsSession Class

Enables starting and configuring Application Insights sessions.

Inheritance Hierarchy


Namespace:  Microsoft.ApplicationInsights.Telemetry.WindowsStore
Assembly:  Microsoft.ApplicationInsights.Telemetry.WindowsStore (in Microsoft.ApplicationInsights.Telemetry.WindowsStore.dll)


Public NotInheritable Class ClientAnalyticsSession _
    Implements IClientAnalyticsSession
public sealed class ClientAnalyticsSession : IClientAnalyticsSession
public ref class ClientAnalyticsSession sealed : IClientAnalyticsSession
type ClientAnalyticsSession =  
        interface IClientAnalyticsSession 
public final class ClientAnalyticsSession implements IClientAnalyticsSession

The ClientAnalyticsSession type exposes the following members.


  Name Description
Public property AnonymousId Unique id for this device.
Public property ApplicationInsightsId Gets the application key you provided to Start().
Public property AppUserId Get or set custom user id which can be used to enable tracking app sessions per user.
Public propertyStatic member Default Get the default Client Analytics Session.
Public property Enabled Set to false to disable client analytics data collection and transfer. Default is true.
Public property ResumeAppRestartTimeout Indicates time interval in seconds after which, for a suspended application session, Application Insights will consider the data collection session as complete. If the application resumes after this time interval, Application Insights will start new data collection session and reports will show more than one session. The default interval is 5 seconds.
Public property SessionId Unique id for the current app session.



  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Start Enable Default ClientAnalyticsChannel to collect data.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace