ClaimsIdentity.BootstrapContext ClaimsIdentity.BootstrapContext ClaimsIdentity.BootstrapContext ClaimsIdentity.BootstrapContext Property

Definition

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); };
[set: System.Security.SecurityCritical]
public object BootstrapContext { get; set; }
member this.BootstrapContext : obj with get, set
Public Property BootstrapContext As Object
Property Value

The bootstrap context.

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.

Security

SecurityCriticalAttribute
Set operation requires full trust for the immediate caller. This member cannot be set by partially trusted or transparent code.

Applies to

See Also