共用方式為


OAuthMiddleware<TOptions>.CreateHandler 方法

定義

AuthenticationHandler<TOptions>提供 物件來處理驗證相關要求。

protected:
 override Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> ^ CreateHandler();
protected override Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions> CreateHandler ();
override this.CreateHandler : unit -> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions and 'Options : (new : unit -> 'Options))>
Protected Overrides Function CreateHandler () As AuthenticationHandler(Of TOptions)

傳回

AuthenticationHandler<TOptions> 設定 OAuthOptions 為提供給建構函式的 。

適用於