RoleManager<TRole> Class

 

Exposes role related API 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> : RoleManager<TRole, string>
where TRole : class, IRole<string>

Type Parameters

TRole

The type of the role.

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

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

NameDescription
System_CAPS_pubpropertyRoles

Gets the IQueryable of roles if the store is an IQueryableRoleStore.(Inherited from RoleManager<TRole, TKey>.)

System_CAPS_pubpropertyRoleValidator

Gets or sets the object used to validate roles before persisting changes.(Inherited from RoleManager<TRole, TKey>.)

System_CAPS_protpropertyStore

Gets or sets the persistence abstraction that the Manager operates against.(Inherited from RoleManager<TRole, TKey>.)

NameDescription
System_CAPS_pubmethodCreateAsync(TRole)

Asynchronously creates a role.(Inherited from RoleManager<TRole, TKey>.)

System_CAPS_pubmethodDeleteAsync(TRole)

Asynchronously deletes a role.(Inherited from RoleManager<TRole, TKey>.)

System_CAPS_pubmethodDispose()

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

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.(Inherited from RoleManager<TRole, TKey>.)

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.(Inherited from RoleManager<TRole, TKey>.)

System_CAPS_pubmethodFindByNameAsync(String)

Asynchronously finds a role by name.(Inherited from RoleManager<TRole, TKey>.)

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. (Inherited from RoleManager<TRole, TKey>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdateAsync(TRole)

Asynchronously updates an existing role.(Inherited from RoleManager<TRole, TKey>.)

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: