共用方式為


AuthenticationSchemeProvider.AddScheme(AuthenticationScheme) 方法

定義

註冊配置以供 使用 IAuthenticationService

public:
 virtual void AddScheme(Microsoft::AspNetCore::Authentication::AuthenticationScheme ^ scheme);
public virtual void AddScheme (Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme);
abstract member AddScheme : Microsoft.AspNetCore.Authentication.AuthenticationScheme -> unit
override this.AddScheme : Microsoft.AspNetCore.Authentication.AuthenticationScheme -> unit
Public Overridable Sub AddScheme (scheme As AuthenticationScheme)

參數

scheme
AuthenticationScheme

配置。

實作

適用於