Export (0) Print
Expand All

SessionSecurityToken.ContextId Property

.NET Framework 4.6 and 4.5

Gets the session context identifier

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public UniqueId ContextId { get; }

Property Value

Type: System.Xml.UniqueId
The session context identifier.

The context identifier is unique across all session tokens.

The SessionSecurityTokenCacheKey class uses both the context ID and the key generation to generate a key for the token in the SessionSecurityTokenCache.

The SessionSecurityTokenHandler class serializes this property as the <Identifier> child element of the <wsc:SecurityContextToken> element. For more information, see the documentation for the SessionSecurityTokenHandler.WriteToken method.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft