IdentityRole 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 : IdentityRole<string, IdentityUserRole>
public ref class IdentityRole : IdentityRole<String^, IdentityUserRole^>
type IdentityRole = 
    class
        inherit IdentityRole<string, IdentityUserRole>
    end
Public Class IdentityRole
    Inherits IdentityRole(Of String, IdentityUserRole)

Constructors

Name Description
System_CAPS_pubmethod IdentityRole()

Initializes a new instance of the IdentityRole class.

System_CAPS_pubmethod IdentityRole(String)

Initializes a new instance of the IdentityRole class.

Properties

Name Description
System_CAPS_pubproperty Id

Gets or sets the role id.(Inherited from IdentityRole<TKey, TUserRole>.)

System_CAPS_pubproperty Name

Gets or sets the role name.(Inherited from IdentityRole<TKey, TUserRole>.)

System_CAPS_pubproperty Users

Gets the collection of users in the role.(Inherited from IdentityRole<TKey, TUserRole>.)

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