RoleManagerExtensions Class

 

Represents extension methods for RoleManager.

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

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Identity.RoleManagerExtensions

Syntax

public static class RoleManagerExtensions
[ExtensionAttribute]
public ref class RoleManagerExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type RoleManagerExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class RoleManagerExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create<TRole, TKey>(RoleManager<TRole, TKey>, TRole)

Creates a role.

System_CAPS_pubmethodSystem_CAPS_static Delete<TRole, TKey>(RoleManager<TRole, TKey>, TRole)

Deletes a role.

System_CAPS_pubmethodSystem_CAPS_static FindById<TRole, TKey>(RoleManager<TRole, TKey>, TKey)

Finds a role by ID.

System_CAPS_pubmethodSystem_CAPS_static FindByName<TRole, TKey>(RoleManager<TRole, TKey>, String)

Finds a role by name.

System_CAPS_pubmethodSystem_CAPS_static RoleExists<TRole, TKey>(RoleManager<TRole, TKey>, String)

Determines whether the role exists.

System_CAPS_pubmethodSystem_CAPS_static Update<TRole, TKey>(RoleManager<TRole, TKey>, TRole)

Updates an existing role.

Thread Safety

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

See Also

Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top