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

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

Syntax

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>> = 
    class
        interface IRole<'TKey>
    end
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.

Constructors

Name Description
System_CAPS_pubmethod IdentityRole<TKey, TUserRole>()

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

Properties

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.

Methods

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