RoleManagerExtensions Class

Extension methods for IRoleManager

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Identity.RoleManagerExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class RoleManagerExtensions
'Usage
public static class RoleManagerExtensions
[ExtensionAttribute]
public ref class RoleManagerExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type RoleManagerExtensions =  class end
public final class RoleManagerExtensions

The RoleManagerExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member Create<TRole> Create a role
Public methodStatic member FindById<TRole> Find a role by id
Public methodStatic member FindByName<TRole> Find a role by name
Public methodStatic member RoleExists<TRole> Returns true if the role exists
Public methodStatic member Update<TRole> Update an existing role

Top

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

Reference

Microsoft.AspNet.Identity Namespace