共用方式為


IdentityServiceCollectionExtensions.AddIdentityCore 方法

定義

多載

AddIdentityCore<TUser>(IServiceCollection)

新增並設定指定之使用者類型的身分識別系統。 預設不會新增角色服務,但可以使用 來新增 AddRoles<TRole>()

AddIdentityCore<TUser>(IServiceCollection, Action<IdentityOptions>)

新增並設定指定之使用者類型的身分識別系統。 預設不會新增角色服務,但可以使用 來新增 AddRoles<TRole>()

AddIdentityCore<TUser>(IServiceCollection)

來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs

新增並設定指定之使用者類型的身分識別系統。 預設不會新增角色服務,但可以使用 來新增 AddRoles<TRole>()

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class;
static member AddIdentityCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddIdentityCore(Of TUser As Class) (services As IServiceCollection) As IdentityBuilder

類型參數

TUser

表示系統中使用者的類型。

參數

services
IServiceCollection

應用程式中可用的服務。

適用於

AddIdentityCore<TUser>(IServiceCollection, Action<IdentityOptions>)

來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs
來源:
IdentityServiceCollectionExtensions.cs

新增並設定指定之使用者類型的身分識別系統。 預設不會新增角色服務,但可以使用 來新增 AddRoles<TRole>()

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> setupAction) where TUser : class;
static member AddIdentityCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddIdentityCore(Of TUser As Class) (services As IServiceCollection, setupAction As Action(Of IdentityOptions)) As IdentityBuilder

類型參數

TUser

表示系統中使用者的類型。

參數

services
IServiceCollection

應用程式中可用的服務。

setupAction
Action<IdentityOptions>

設定 的 IdentityOptions 動作。

適用於