ClaimsIdentity.BootstrapContext 屬性

定義

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

C#
public object BootstrapContext { get; [System.Security.SecurityCritical] set; }
C#
public object? BootstrapContext { get; set; }
C#
public object BootstrapContext { get; set; }

屬性值

啟動程序內容。

屬性

備註

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

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

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

適用於

產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

另請參閱