IdentityServiceCollectionExtensions.AddIdentity 메서드

정의

오버로드

AddIdentity<TUser,TRole>(IServiceCollection)

지정된 사용자 및 역할 형식에 대한 기본 ID 시스템 구성을 추가합니다.

AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)
AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)

지정된 사용자 및 역할 유형에 대한 ID 시스템을 추가하고 구성합니다.

AddIdentity<TUser,TRole>(IServiceCollection)

지정된 사용자 및 역할 형식에 대한 기본 ID 시스템 구성을 추가합니다.

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

형식 매개 변수

TUser

시스템의 사용자를 나타내는 형식입니다.

TRole

시스템의 역할을 나타내는 형식입니다.

매개 변수

services
IServiceCollection

애플리케이션에서 사용할 수 있는 서비스입니다.

반환

IdentityBuilder ID 시스템을 만들고 구성하기 위한 입니다.

적용 대상

AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)

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

형식 매개 변수

TUser
TRole

매개 변수

setupAction
Action<IdentityOptions>

반환

적용 대상

AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)

지정된 사용자 및 역할 유형에 대한 ID 시스템을 추가하고 구성합니다.

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

형식 매개 변수

TUser

시스템의 사용자를 나타내는 형식입니다.

TRole

시스템의 역할을 나타내는 형식입니다.

매개 변수

services
IServiceCollection

애플리케이션에서 사용할 수 있는 서비스입니다.

setupAction
Action<IdentityOptions>

를 구성하는 작업입니다 IdentityOptions.

반환

IdentityBuilder ID 시스템을 만들고 구성하기 위한 입니다.

적용 대상