Share via


RoleStore<TRole,TContext,TKey> クラス

定義

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

generic <typename TRole, typename TContext, typename TKey>
 where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class RoleStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::RoleStore<TRole, TContext, TKey, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRoleClaim<TKey> ^>, IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
generic <typename TRole, typename TContext, typename TKey>
 where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class RoleStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::RoleStore<TRole, TContext, TKey, Microsoft::AspNetCore::Identity::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::IdentityRoleClaim<TKey> ^>, IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
public class RoleStore<TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole,TContext,TKey,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey>>, IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
public class RoleStore<TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole,TContext,TKey,Microsoft.AspNetCore.Identity.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.IdentityRoleClaim<TKey>>, IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
type RoleStore<'Role, 'Context, 'Key (requires 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)> = class
    inherit RoleStore<'Role, 'Context, 'Key, IdentityUserRole<'Key>, IdentityRoleClaim<'Key> (requires 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)>
    interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
    interface IDisposable
    interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key>)>
Public Class RoleStore(Of TRole, TContext, TKey)
Inherits RoleStore(Of TRole, TContext, TKey, IdentityUserRole(Of TKey), IdentityRoleClaim(Of TKey))
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)

型パラメーター

TRole

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

TContext

ストアへのアクセスに使用されるデータ コンテキスト クラスの型。

TKey

ロールの主キーの種類。

継承
RoleStore<TRole,TContext,TKey,IdentityUserRole<TKey>,IdentityRoleClaim<TKey>>
RoleStore<TRole,TContext,TKey>
継承
RoleStore<TRole,TContext,TKey,IdentityUserRole<TKey>,IdentityRoleClaim<TKey>>
RoleStore<TRole,TContext,TKey>
派生
実装

コンストラクター

RoleStore<TRole,TContext,TKey>(TContext, IdentityErrorDescriber)

RoleStore<TRole,TContext,TKey> の新しいインスタンスを作成します。

プロパティ

AutoSaveChanges

CreateAsync、UpdateAsync、DeleteAsync の呼び出し後に変更を永続化するかどうかを示すフラグを取得または設定します。

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
Context

このストアのデータベース コンテキストを取得します。

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
ErrorDescriber

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
Roles

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)

メソッド

AddClaimAsync(TRole, Claim, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
ConvertIdFromString(String)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
ConvertIdToString(TKey)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
CreateAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
CreateRoleClaim(TRole, Claim)

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

CreateRoleClaim(TRole, Claim)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
DeleteAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
Dispose()

ストアを破棄する

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
FindByIdAsync(String, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
FindByNameAsync(String, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
GetClaimsAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
GetNormalizedRoleNameAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
GetRoleIdAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
GetRoleNameAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
RemoveClaimAsync(TRole, Claim, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
SaveChanges(CancellationToken)

現在のストアを保存します。

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
SetRoleNameAsync(TRole, String, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
ThrowIfDisposed()

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)
UpdateAsync(TRole, CancellationToken)

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

(継承元 RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>)

適用対象