ClaimsPrincipal.ClaimsPrincipalSelector 属性

定义

获取或设置用于选择 Current 属性返回的声明主体的委托。

public:
 static property Func<System::Security::Claims::ClaimsPrincipal ^> ^ ClaimsPrincipalSelector { Func<System::Security::Claims::ClaimsPrincipal ^> ^ get(); void set(Func<System::Security::Claims::ClaimsPrincipal ^> ^ value); };
public static Func<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalSelector { get; [System.Security.SecurityCritical] set; }
public static Func<System.Security.Claims.ClaimsPrincipal> ClaimsPrincipalSelector { get; set; }
[<set: System.Security.SecurityCritical>]
static member ClaimsPrincipalSelector : Func<System.Security.Claims.ClaimsPrincipal> with get, set
static member ClaimsPrincipalSelector : Func<System.Security.Claims.ClaimsPrincipal> with get, set
Public Shared Property ClaimsPrincipalSelector As Func(Of ClaimsPrincipal)

属性值

委托。 默认值为 null

属性

注解

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

适用于

另请参阅