Freigeben über


IdentityBuilder.AddRoleStore<TStore> Methode

Definition

Fügt einen IRoleStore<TRole> für hinzu RoleType.

public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleStore<T> () where T : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleStore<TRole> () where TRole : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleStore<TStore> () where TStore : class;
abstract member AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
override this.AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
abstract member AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Role : null)
override this.AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Role : null)
abstract member AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Store : null)
override this.AddRoleStore : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Store : null)
Public Overridable Function AddRoleStore(Of T As Class) () As IdentityBuilder
Public Overridable Function AddRoleStore(Of TRole As Class) () As IdentityBuilder
Public Overridable Function AddRoleStore(Of TStore As Class) () As IdentityBuilder

Typparameter

T TRole TStore

Der Rollenspeicher.

Gibt zurück

Die aktuelle IdentityBuilder-Instanz.

Gilt für: