共用方式為


UserStore<TUser,TRole,TContext,TKey>.CreateUserClaim 方法

定義

呼叫 以建立 的新實例 IdentityUserClaim<TKey>

protected:
 override Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserClaim<TKey> ^ CreateUserClaim(TUser user, System::Security::Claims::Claim ^ claim);
protected override Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<TKey> CreateUserClaim (TUser user, System.Security.Claims.Claim claim);
override this.CreateUserClaim : 'User * System.Security.Claims.Claim -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<'Key (requires 'Key :> IEquatable<'Key>)>
Protected Overrides Function CreateUserClaim (user As TUser, claim As Claim) As IdentityUserClaim(Of TKey)

參數

user
TUser

相關聯的使用者。

claim
Claim

相關聯的宣告。

傳回

適用於