IdentityRoleClaim<TKey> 類別

定義

表示授與角色內所有使用者的宣告。

generic <typename TKey>
 where TKey : IEquatable<TKey>public ref class IdentityRoleClaim
public class IdentityRoleClaim<TKey> where TKey : IEquatable<TKey>
type IdentityRoleClaim<'Key (requires 'Key :> IEquatable<'Key>)> = class
Public Class IdentityRoleClaim(Of TKey)

類型參數

TKey

與此宣告相關聯之角色的主鍵類型。

繼承
IdentityRoleClaim<TKey>

建構函式

IdentityRoleClaim<TKey>()

表示授與角色內所有使用者的宣告。

屬性

ClaimType

取得或設定這個宣告的宣告類型。

ClaimValue

取得或設定這個宣告的宣告值。

Id

取得或設定這個角色宣告的識別碼。

RoleId

取得或設定與此宣告相關聯之角色之主鍵的 。

方法

InitializeFromClaim(Claim)

從其他宣告複製 ClaimType 和 ClaimValue,以初始化 。

ToClaim()

使用類型和值建構新的宣告。

適用於