Export (0) Print
Expand All

ClaimsPrincipal::PrimaryIdentitySelector Property

.NET Framework 4.6 and 4.5

Gets and sets the delegate used to select the claims identity returned by the Identity property.

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

static property Func<IEnumerable<ClaimsIdentity^>^, ClaimsIdentity^>^ PrimaryIdentitySelector {
	Func<IEnumerable<ClaimsIdentity^>^, ClaimsIdentity^>^ get ();
	void set (Func<IEnumerable<ClaimsIdentity^>^, ClaimsIdentity^>^ value);

Property Value

Type: System::Func<IEnumerable<ClaimsIdentity>, ClaimsIdentity>
The delegate. The default is nullptr.

You can set this property to override the default behavior of the Identity property.

.NET Framework

Supported in: 4.6, 4.5

  • SecurityCriticalAttribute 

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

© 2015 Microsoft