Condividi tramite


IdentityServiceCollectionExtensions.AddIdentityCore Metodo

Definizione

Overload

AddIdentityCore<TUser>(IServiceCollection)

Aggiunge e configura il sistema di identità per il tipo di utente specificato. I servizi ruolo non vengono aggiunti per impostazione predefinita, ma possono essere aggiunti con AddRoles<TRole>().

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

Aggiunge e configura il sistema di identità per il tipo di utente specificato. I servizi ruolo non vengono aggiunti per impostazione predefinita, ma possono essere aggiunti con AddRoles<TRole>().

AddIdentityCore<TUser>(IServiceCollection)

Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs

Aggiunge e configura il sistema di identità per il tipo di utente specificato. I servizi ruolo non vengono aggiunti per impostazione predefinita, ma possono essere aggiunti con 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

Parametri di tipo

TUser

Tipo che rappresenta un utente nel sistema.

Parametri

services
IServiceCollection

I servizi disponibili nell'applicazione.

Si applica a

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

Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs
Origine:
IdentityServiceCollectionExtensions.cs

Aggiunge e configura il sistema di identità per il tipo di utente specificato. I servizi ruolo non vengono aggiunti per impostazione predefinita, ma possono essere aggiunti con 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

Parametri di tipo

TUser

Tipo che rappresenta un utente nel sistema.

Parametri

services
IServiceCollection

I servizi disponibili nell'applicazione.

setupAction
Action<IdentityOptions>

Azione per configurare .IdentityOptions

Si applica a