ClaimsPrincipal.PrimaryIdentitySelector 属性

定义

获取或设置用于选择 Identity 属性返回的声明标识的委托。

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); };
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity> PrimaryIdentitySelector { get; [System.Security.SecurityCritical] set; }
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity?> PrimaryIdentitySelector { get; set; }
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity> PrimaryIdentitySelector { get; set; }
[<set: System.Security.SecurityCritical>]
member this.PrimaryIdentitySelector : Func<seq<System.Security.Claims.ClaimsIdentity>, System.Security.Claims.ClaimsIdentity> with 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)

属性值

Func<IEnumerable<ClaimsIdentity>,ClaimsIdentity>

委托。 默认值为 null

属性

注解

可以设置此属性以替代属性的默认行为 Identity

适用于

另请参阅