語言

SessionSecurityToken.ContextId 屬性

定義

取得會話上下文識別碼。

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 方法的文件。

適用於

另請參閱