RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim> クラス

定義

ロールの永続化ストアの新しいインスタンスを作成します。

generic <typename TRole, typename TKey, typename TUserRole, typename TRoleClaim>
 where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey>gcnew() where TRoleClaim : IdentityRoleClaim<TKey>gcnew()public ref class RoleStoreBase abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
public abstract class RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey>, new() where TRoleClaim : IdentityRoleClaim<TKey>, new()
type RoleStoreBase<'Role, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> IdentityRole<'Key> and 'Key :> IEquatable<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole) and 'RoleClaim :> IdentityRoleClaim<'Key> and 'RoleClaim : (new : unit -> 'RoleClaim))> = class
    interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IDisposable
    interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key>)>
Public MustInherit Class RoleStoreBase(Of TRole, TKey, TUserRole, TRoleClaim)
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)

型パラメーター

TRole

ロールを表すクラスの型。

TKey

ロールの主キーの種類。

TUserRole

ユーザー ロールを表すクラスの型。

TRoleClaim

ロール要求を表すクラスの型。

継承
RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>
実装

コンストラクター

RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>(IdentityErrorDescriber)

RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim> の新しいインスタンスを作成します。

プロパティ

ErrorDescriber

現在の操作で IdentityErrorDescriber 発生したエラーの を取得または設定します。

Roles

ストアに含まれるロールのナビゲーション プロパティ。

メソッド

AddClaimAsync(TRole, Claim, CancellationToken)

指定した を claim 指定した に追加します role

ConvertIdFromString(String)

指定 id された を厳密に型指定されたキー オブジェクトに変換します。

ConvertIdToString(TKey)

指定 id された をその文字列表現に変換します。

CreateAsync(TRole, CancellationToken)

非同期操作としてストアに新しいロールを作成します。

CreateRoleClaim(TRole, Claim)

ロール要求を表すエンティティを作成します。

DeleteAsync(TRole, CancellationToken)

非同期操作としてストアからロールを削除します。

Dispose()

ストアを破棄する

FindByIdAsync(String, CancellationToken)

指定した ID を持つロールを非同期操作として検索します。

FindByNameAsync(String, CancellationToken)

指定された正規化された名前を持つロールを非同期操作として検索します。

GetClaimsAsync(TRole, CancellationToken)

指定した role に関連付けられている要求を非同期操作として取得します。

GetNormalizedRoleNameAsync(TRole, CancellationToken)

ロールの正規化された名前を非同期操作として取得します。

GetRoleIdAsync(TRole, CancellationToken)

非同期操作としてストアからロールの ID を取得します。

GetRoleNameAsync(TRole, CancellationToken)

非同期操作としてストアからロールの名前を取得します。

RemoveClaimAsync(TRole, Claim, CancellationToken)

指定した claim から 指定された を削除します role

SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

ロールの正規化された名前を非同期操作として設定します。

SetRoleNameAsync(TRole, String, CancellationToken)

ストア内のロールの名前を非同期操作として設定します。

ThrowIfDisposed()

このクラスが破棄されている場合は をスローします。

UpdateAsync(TRole, CancellationToken)

ストア内のロールを非同期操作として更新します。

適用対象