ClaimsIdentity.BootstrapContext 屬性

定義

取得或設定用來建立此宣告識別的權杖。

public:
 property System::Object ^ BootstrapContext { System::Object ^ get(); void set(System::Object ^ value); };
public object BootstrapContext { get; [System.Security.SecurityCritical] set; }
public object? BootstrapContext { get; set; }
public object BootstrapContext { get; set; }
[<set: System.Security.SecurityCritical>]
member this.BootstrapContext : obj with get, set
member this.BootstrapContext : obj with get, set
Public Property BootstrapContext As Object

屬性值

啟動程序內容。

屬性

備註

基礎物件是 類別的 System.IdentityModel.Tokens.BootstrapContext 實例。

saveBootstrapContext 組態檔中< 設定 identityConfiguration >< securityTokenHandlerConfiguration >元素上的 屬性,以指定是否應該在 屬性中保留用來產生 ClaimsIdentityBootstrapContext 權杖。

BootstrapContext如果 屬性不是 null ,則應用程式可以存取原始權杖,以及透過 類別的屬性和方法 System.IdentityModel.Tokens.BootstrapContext 產生的宣告。

適用於

另請參閱