ClaimsIdentity.BootstrapContext 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用來建立此宣告識別的權杖。
public:
property System::Object ^ BootstrapContext { System::Object ^ get(); void set(System::Object ^ value); };
C#
public object BootstrapContext { get; [System.Security.SecurityCritical] set; }
C#
public object? BootstrapContext { get; set; }
C#
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 >元素上的 屬性,以指定是否應該在 屬性中保留用來產生 ClaimsIdentity 的 BootstrapContext 權杖。
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 |