ClaimsIdentity::BootstrapContext Property

.NET Framework (current version)

Gets or sets the token that was used to create this claims identity.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

property Object^ BootstrapContext {
	Object^ get();
	void set(Object^ value);

Property Value

Type: System::Object^

The bootstrap context.

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.


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

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top