AuthenticationOptions.AddScheme 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddScheme(String, Action<AuthenticationSchemeBuilder>) | |
AddScheme<THandler>(String, String) |
AddScheme(String, Action<AuthenticationSchemeBuilder>)
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
public:
void AddScheme(System::String ^ name, Action<Microsoft::AspNetCore::Authentication::AuthenticationSchemeBuilder ^> ^ configureBuilder);
public void AddScheme (string name, Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> configureBuilder);
member this.AddScheme : string * Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> -> unit
Public Sub AddScheme (name As String, configureBuilder As Action(Of AuthenticationSchemeBuilder))
参数
- name
- String
要添加的方案的名称。
- configureBuilder
- Action<AuthenticationSchemeBuilder>
配置方案。
适用于
AddScheme<THandler>(String, String)
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
- Source:
- AuthenticationOptions.cs
public:
generic <typename THandler>
where THandler : Microsoft::AspNetCore::Authentication::IAuthenticationHandler void AddScheme(System::String ^ name, System::String ^ displayName);
public void AddScheme<THandler> (string name, string displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
public void AddScheme<THandler> (string name, string? displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
member this.AddScheme : string * string -> unit (requires 'Handler :> Microsoft.AspNetCore.Authentication.IAuthenticationHandler)
Public Sub AddScheme(Of THandler As IAuthenticationHandler) (name As String, displayName As String)
类型参数
- THandler
负责 IAuthenticationHandler 方案的 。
参数
- name
- String
要添加的方案的名称。
- displayName
- String
方案的显示名称。