AuthenticationCoreServiceCollectionExtensions.AddAuthenticationCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddAuthenticationCore(IServiceCollection) |
新增 所需的 IAuthenticationService 核心驗證服務。 |
AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>) |
新增 所需的 IAuthenticationService 核心驗證服務。 |
AddAuthenticationCore(IServiceCollection)
新增 所需的 IAuthenticationService 核心驗證服務。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
傳回
服務集合。
適用於
AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>)
新增 所需的 IAuthenticationService 核心驗證服務。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> configureOptions);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection, configureOptions As Action(Of AuthenticationOptions)) As IServiceCollection
參數
- services
- IServiceCollection
- configureOptions
- Action<AuthenticationOptions>
用於設定 AuthenticationOptions。
傳回
服務集合。