共用方式為


AuthenticationSchemeOptions.ForwardDefaultSelector 屬性

定義

用來選取目前要求的預設配置,驗證處理常式預設應該將所有驗證作業轉送至 。 預設轉送邏輯會先檢查最特定的 ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut 設定,然後檢查 ForwardDefaultSelector,後面接著 ForwardDefault。 第一個非 Null 結果會作為要轉送的目標配置。

public:
 property Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ ForwardDefaultSelector { Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ get(); void set(Func<Microsoft::AspNetCore::Http::HttpContext ^, System::String ^> ^ value); };
public Func<Microsoft.AspNetCore.Http.HttpContext,string> ForwardDefaultSelector { get; set; }
public Func<Microsoft.AspNetCore.Http.HttpContext,string>? ForwardDefaultSelector { get; set; }
public Func<Microsoft.AspNetCore.Http.HttpContext,string?>? ForwardDefaultSelector { get; set; }
member this.ForwardDefaultSelector : Func<Microsoft.AspNetCore.Http.HttpContext, string> with get, set
Public Property ForwardDefaultSelector As Func(Of HttpContext, String)

屬性值

適用於