UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.CreateUserRole 方法

定义

创建一个新实体来表示用户角色。

protected:
 abstract TUserRole CreateUserRole(TUser user, TRole role);
protected abstract TUserRole CreateUserRole (TUser user, TRole role);
abstract member CreateUserRole : 'User * 'Role -> 'UserRole
Protected MustOverride Function CreateUserRole (user As TUser, role As TRole) As TUserRole

参数

user
TUser
role
TRole

返回

TUserRole

适用于