Sdílet prostřednictvím


IdentityServiceCollectionExtensions.AddIdentityCore Metoda

Definice

Přetížení

AddIdentityCore<TUser>(IServiceCollection)

Přidá a nakonfiguruje systém identit pro zadaný typ uživatele. Služby rolí se ve výchozím nastavení nepřidávají, ale je možné je přidat pomocí AddRoles<TRole>().

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

Přidá a nakonfiguruje systém identit pro zadaný typ uživatele. Služby rolí se ve výchozím nastavení nepřidávají, ale je možné je přidat pomocí AddRoles<TRole>().

AddIdentityCore<TUser>(IServiceCollection)

Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs

Přidá a nakonfiguruje systém identit pro zadaný typ uživatele. Služby rolí se ve výchozím nastavení nepřidávají, ale je možné je přidat pomocí 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

Parametry typu

TUser

Typ představující uživatele v systému.

Parametry

services
IServiceCollection

Služby dostupné v aplikaci.

Platí pro

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

Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs
Zdroj:
IdentityServiceCollectionExtensions.cs

Přidá a nakonfiguruje systém identit pro zadaný typ uživatele. Služby rolí se ve výchozím nastavení nepřidávají, ale je možné je přidat pomocí 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

Parametry typu

TUser

Typ představující uživatele v systému.

Parametry

services
IServiceCollection

Služby dostupné v aplikaci.

setupAction
Action<IdentityOptions>

Akce pro konfiguraci objektu IdentityOptions.

Platí pro