UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.CreateUserClaim 方法

定义

调用 以创建 的新实例 IdentityUserClaim<TKey>

protected:
 virtual TUserClaim CreateUserClaim(TUser user, System::Security::Claims::Claim ^ claim);
protected virtual TUserClaim CreateUserClaim (TUser user, System.Security.Claims.Claim claim);
abstract member CreateUserClaim : 'User * System.Security.Claims.Claim -> 'UserClaim
override this.CreateUserClaim : 'User * System.Security.Claims.Claim -> 'UserClaim
Protected Overridable Function CreateUserClaim (user As TUser, claim As Claim) As TUserClaim

参数

user
TUser

关联的用户。

claim
Claim

关联的声明。

返回

TUserClaim

适用于