RoleStore<TRole,TContext,TKey>.CreateRoleClaim(TRole, Claim) 方法

定义

创建表示角色声明的实体。

protected:
 override Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRoleClaim<TKey> ^ CreateRoleClaim(TRole role, System::Security::Claims::Claim ^ claim);
protected override Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey> CreateRoleClaim (TRole role, System.Security.Claims.Claim claim);
override this.CreateRoleClaim : 'Role * System.Security.Claims.Claim -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<'Key (requires 'Key :> IEquatable<'Key>)>
Protected Overrides Function CreateRoleClaim (role As TRole, claim As Claim) As IdentityRoleClaim(Of TKey)

参数

role
TRole

关联的角色。

claim
Claim

关联的声明。

返回

角色声明实体。

适用于