共用方式為


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

適用於