Language

IdentityUserRole<TKey> Class

 

Represents an EntityType user belonging to a role.

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

Inheritance Hierarchy

System.Object   Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<TKey>     Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole

Syntax

public class IdentityUserRole<TKey>
generic<typename TKey>
public ref class IdentityUserRole
type IdentityUserRole<'TKey> = class end
Public Class IdentityUserRole(Of TKey)

Type Parameters

  • TKey The type of the key.

Constructors

Name Description
IdentityUserRole<TKey>() Initializes a new instance of the IdentityUserRole<TKey> class.

Properties

Name Description
RoleId Gets or sets the Role ID for the role.
UserId Gets or sets the ID for the user that is in the role.

Methods

Name Description
Equals(Object) (Inherited from Object.)
Finalize() (Inherited from Object.)
GetHashCode() (Inherited from Object.)
GetType() (Inherited from Object.)
MemberwiseClone() (Inherited from Object.)
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](https://go.microsoft.com/fwlink/p/?linkid=393664.

Return to top