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 システムを作成および構成するための 。

適用対象