اقرأ باللغة الإنجليزية

مشاركة عبر


UserClaimsPrincipalFactory<TUser,TRole> Class

Definition

Provides methods to create a claims principal for a given user.

C#
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class
C#
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class

Type Parameters

TUser

The type used to represent a user.

TRole

The type used to represent a role.

Inheritance
UserClaimsPrincipalFactory<TUser,TRole>
Inheritance
UserClaimsPrincipalFactory<TUser,TRole>
Implements

Constructors

Properties

Options

Gets the IdentityOptions for this factory.

Options

Gets the IdentityOptions for this factory.

(Inherited from UserClaimsPrincipalFactory<TUser>)
RoleManager

Gets the RoleManager<TRole> for this factory.

UserManager

Gets the UserManager<TUser> for this factory.

UserManager

Gets the UserManager<TUser> for this factory.

(Inherited from UserClaimsPrincipalFactory<TUser>)

Methods

CreateAsync(TUser)

Creates a ClaimsPrincipal from an user asynchronously.

CreateAsync(TUser)

Creates a ClaimsPrincipal from an user asynchronously.

(Inherited from UserClaimsPrincipalFactory<TUser>)
GenerateClaimsAsync(TUser)

Generate the claims for a user.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0