IdentityRole<TKey, TUserRole> Class


Represents a role entity

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

Inheritance Hierarchy

  Microsoft.AspNet.Identity.EntityFramework.IdentityRole<TKey, TUserRole>


public class IdentityRole<TKey, TUserRole> : IRole<TKey>
where TUserRole : IdentityUserRole<TKey>
generic<typename TKey, typename TUserRole>
where TUserRole : IdentityUserRole<TKey>
public ref class IdentityRole : IRole<TKey>
type IdentityRole<'TKey, 'TUserRole when 'TUserRole : IdentityUserRole<'TKey>> = 
        interface IRole<'TKey>
Public Class IdentityRole(Of TKey, TUserRole As IdentityUserRole(Of TKey))
    Implements IRole(Of TKey)

Type Parameters

  • TKey
    The type of the key.
  • TUserRole
    The type of the user role.


Name Description
System_CAPS_pubmethod IdentityRole<TKey, TUserRole>()

Initializes a new instance of the IdentityRole<TKey, TUserRole> class.


Name Description
System_CAPS_pubproperty Id

Gets or sets the role id.

System_CAPS_pubproperty Name

Gets or sets the role name.

System_CAPS_pubproperty Users

Gets the collection of users in the role.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.EntityFramework Namespace
ASP.NET Identity

Return to top