UserClaimsPrincipalFactory<TUser,TRole> Sınıf

Tanım

Belirli bir kullanıcı için talep sorumlusu oluşturmak için yöntemler sağlar.

generic <typename TUser, typename TRole>
 where TUser : class where TRole : classpublic ref class UserClaimsPrincipalFactory : Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser>
generic <typename TUser, typename TRole>
 where TUser : class where TRole : classpublic ref class UserClaimsPrincipalFactory : Microsoft::AspNetCore::Identity::UserClaimsPrincipalFactory<TUser>
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class
type UserClaimsPrincipalFactory<'User, 'Role (requires 'User : null and 'Role : null)> = class
    interface IUserClaimsPrincipalFactory<'User (requires 'User : null)>
type UserClaimsPrincipalFactory<'User, 'Role (requires 'User : null and 'Role : null)> = class
    inherit UserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Class UserClaimsPrincipalFactory(Of TUser, TRole)
Implements IUserClaimsPrincipalFactory(Of TUser)
Public Class UserClaimsPrincipalFactory(Of TUser, TRole)
Inherits UserClaimsPrincipalFactory(Of TUser)

Tür Parametreleri

TUser

Kullanıcıyı temsil etmek için kullanılan tür.

TRole

Bir rolü temsil etmek için kullanılan tür.

Devralma
UserClaimsPrincipalFactory<TUser,TRole>
Devralma
UserClaimsPrincipalFactory<TUser,TRole>
Uygulamalar

Oluşturucular

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

UserClaimsPrincipalFactory<TUser,TRole> sınıfının yeni bir örneğini başlatır.

UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>)

UserClaimsPrincipalFactory<TUser,TRole> sınıfının yeni bir örneğini başlatır.

Özellikler

Options

Bu fabrika için alır IdentityOptions .

Options

Bu fabrika için alır IdentityOptions .

(Devralındığı yer: UserClaimsPrincipalFactory<TUser>)
RoleManager

Bu fabrika için alır RoleManager<TRole> .

UserManager

Bu fabrika için alır UserManager<TUser> .

UserManager

Bu fabrika için alır UserManager<TUser> .

(Devralındığı yer: UserClaimsPrincipalFactory<TUser>)

Yöntemler

CreateAsync(TUser)

Bir kullanıcıdan zaman uyumsuz olarak bir ClaimsPrincipal oluşturur.

CreateAsync(TUser)

Bir kullanıcıdan zaman uyumsuz olarak bir ClaimsPrincipal oluşturur.

(Devralındığı yer: UserClaimsPrincipalFactory<TUser>)
GenerateClaimsAsync(TUser)

Bir kullanıcı için talepleri oluşturun.

Şunlara uygulanır