Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
property Object^ BootstrapContext {
	Object^ get();
	[SecurityCriticalAttribute]
	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.

SecurityCriticalAttribute

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
Show:
© 2017 Microsoft