共用方式為


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>]
member this.ClaimsPrincipalSelector : Func<System.Security.Claims.ClaimsPrincipal> with get, set
member this.ClaimsPrincipalSelector : Func<System.Security.Claims.ClaimsPrincipal> with get, set
Public Shared Property ClaimsPrincipalSelector As Func(Of ClaimsPrincipal)

屬性值

Func<ClaimsPrincipal>

委派。 預設為 null

屬性

備註

您可以設定這個屬性來覆寫屬性的預設行為 Current

適用於

另請參閱