ClaimsPrincipal.PrimaryIdentitySelector ClaimsPrincipal.PrimaryIdentitySelector ClaimsPrincipal.PrimaryIdentitySelector ClaimsPrincipal.PrimaryIdentitySelector Property

Definition

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

public:
 static property Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ PrimaryIdentitySelector { Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ get(); void set(Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ value); };
[set: System.Security.SecurityCritical]
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity> PrimaryIdentitySelector { get; set; }
member this.PrimaryIdentitySelector : Func<seq<System.Security.Claims.ClaimsIdentity>, System.Security.Claims.ClaimsIdentity> with get, set
Public Shared Property PrimaryIdentitySelector As Func(Of IEnumerable(Of ClaimsIdentity), ClaimsIdentity)

Property Value

The delegate. The default is null.

Remarks

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

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