UserClaimsPrincipalFactory<TUser,TRole> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods to create a claims principal for a given user.
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)
- TUser
The type used to represent a user.
- TRole
The type used to represent a role.
- Inheritance
-
UserClaimsPrincipalFactory<TUser,TRole>
- Inheritance
- Implements
User |
Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class. |
User |
Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class. |
Options |
Gets the IdentityOptions for this factory. |
Options |
Gets the IdentityOptions for this factory. (Inherited from UserClaimsPrincipalFactory<TUser>) |
Role |
Gets the RoleManager<TRole> for this factory. |
User |
Gets the UserManager<TUser> for this factory. |
User |
Gets the UserManager<TUser> for this factory. (Inherited from UserClaimsPrincipalFactory<TUser>) |
Create |
Creates a ClaimsPrincipal from an user asynchronously. |
Create |
Creates a ClaimsPrincipal from an user asynchronously. (Inherited from UserClaimsPrincipalFactory<TUser>) |
Generate |
Generate the claims for a user. |
منتج | الإصدارات |
---|---|
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 |