RoleManager<TRole, TKey> Class

 

Exposes the role related APIs which will automatically save changes to the RoleStore.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

System.Object
  Microsoft.AspNet.Identity.RoleManager<TRole, TKey>
    Microsoft.AspNet.Identity.RoleManager<TRole>

public class RoleManager<TRole, TKey> : IDisposable
where TRole : class, IRole<TKey>
where TKey : object, IEquatable<TKey>

Type Parameters

TRole

The type of the role in the manager.

TKey

The type of the keys in the manager.

NameDescription
System_CAPS_pubmethodRoleManager<TRole, TKey>(IRoleStore<TRole, TKey>)

Initializes a new instance of the RoleManager<TRole, TKey> class.

NameDescription
System_CAPS_pubpropertyRoles

Gets the IQueryable of roles if the store is an IQueryableRoleStore.

System_CAPS_pubpropertyRoleValidator

Gets or sets the object used to validate roles before persisting changes.

System_CAPS_protpropertyStore

Gets or sets the persistence abstraction that the Manager operates against.

NameDescription
System_CAPS_pubmethodCreateAsync(TRole)

Asynchronously creates a role.

System_CAPS_pubmethodDeleteAsync(TRole)

Asynchronously deletes a role.

System_CAPS_pubmethodDispose()

Releases the resources used by the current instance of the RoleManager<TRole, TKey> class.

System_CAPS_protmethodDispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the RoleManager<TRole, TKey> class.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindByIdAsync(TKey)

Asynchronously finds a role using the specified identifier.

System_CAPS_pubmethodFindByNameAsync(String)

Asynchronously finds a role by name.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRoleExistsAsync(String)

Indicates a value whether the role exists.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdateAsync(TRole)

Asynchronously updates an existing role.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: