ClaimsIdentity.BootstrapContext Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the token that was used to create this claims identity.
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
Property Value
The bootstrap context.
- Attributes
Remarks
The underlying object is an instance of the System.IdentityModel.Tokens.BootstrapContext class.
Set the saveBootstrapContext
attribute on either the <identityConfiguration> or the <securityTokenHandlerConfiguration> element in a configuration file to specify whether the token used to generate the ClaimsIdentity should be preserved in the BootstrapContext property.
If the BootstrapContext property is not null
, applications can access the original token and the claims it produced through the properties and methods of the System.IdentityModel.Tokens.BootstrapContext class.