SessionSecurityToken.ContextId 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得會話上下文識別碼。
public:
property System::Xml::UniqueId ^ ContextId { System::Xml::UniqueId ^ get(); };
public System.Xml.UniqueId ContextId { get; }
member this.ContextId : System.Xml.UniqueId
Public ReadOnly Property ContextId As UniqueId
屬性值
會話上下文識別碼。
備註
上下文識別碼在所有會話標記中都是唯一的。
該 SessionSecurityTokenCacheKey 類別同時使用上下文 ID 與金鑰產生來產生 SessionSecurityTokenCache。
類別 SessionSecurityTokenHandler 將此屬性序列化為 <Identifier> 元素 <wsc:SecurityContextToken> 的子元素。 欲了解更多資訊,請參閱該 SessionSecurityTokenHandler.WriteToken 方法的文件。