Condividi tramite


SessionStateTelemetry Class

Definition

Caution

Session state events are no longer used. This telemetry item will be sent as EventTelemetry.

Telemetry type used to track user sessions.

[System.Obsolete("Session state events are no longer used. This telemetry item will be sent as EventTelemetry.")]
public sealed class SessionStateTelemetry : Microsoft.ApplicationInsights.Channel.ITelemetry
[<System.Obsolete("Session state events are no longer used. This telemetry item will be sent as EventTelemetry.")>]
type SessionStateTelemetry = class
    interface ITelemetry
Public NotInheritable Class SessionStateTelemetry
Implements ITelemetry
Inheritance
SessionStateTelemetry
Attributes
Implements

Constructors

SessionStateTelemetry()

Initializes a new instance of the SessionStateTelemetry class.

SessionStateTelemetry(SessionState)

Initializes a new instance of the SessionStateTelemetry class with the specified state.

Properties

Context

Gets the TelemetryContext of the application when the session state was recorded.

Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Sequence

Gets or sets the value that defines absolute order of the telemetry item.

State

Gets or sets the value describing state of the user session.

Timestamp

Gets or sets the date and time the session state was recorded.

Methods

DeepClone()

Deeply clones a SessionStateTelemetry object.

SerializeData(ISerializationWriter)

Writes serialization info about the data class of the implementing type using the given ISerializationWriter.

Explicit Interface Implementations

ITelemetry.Sanitize()

Sanitizes this telemetry instance to ensure it can be accepted by the Application Insights.

Extension Methods

GetEnvelopeName(ITelemetry)

Gets envelope name for ITelemetry object.

TrySetEnvelopeName(ITelemetry, String)

Sets envelope name for ITelemetry object.

Applies to