ClientAnalyticsSession Class

Enables starting and configuring Application Insights sessions.

Inheritance Hierarchy

System.Object
  Microsoft.ApplicationInsights.Telemetry.WindowsStore.ClientAnalyticsSession

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

Syntax

'Declaration
Public NotInheritable Class ClientAnalyticsSession _
    Implements IClientAnalyticsSession
public sealed class ClientAnalyticsSession : IClientAnalyticsSession
public ref class ClientAnalyticsSession sealed : IClientAnalyticsSession
[<Sealed>]
type ClientAnalyticsSession =  
    class 
        interface IClientAnalyticsSession 
    end
public final class ClientAnalyticsSession implements IClientAnalyticsSession

The ClientAnalyticsSession type exposes the following members.

Properties

  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.

Top

Methods

  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.)

Top

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

Reference

Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace