Share via


IdentityUser.Roles Property

Navigation property for user roles

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

Syntax

'Declaration
Public Overridable Property Roles As ICollection(Of IdentityUserRole)
    Get 
    Private Set
'Usage
Dim instance As IdentityUser 
Dim value As ICollection(Of IdentityUserRole)

value = instance.Roles
public virtual ICollection<IdentityUserRole> Roles { get; private set; }
public:
virtual property ICollection<IdentityUserRole^>^ Roles {
    ICollection<IdentityUserRole^>^ get ();
    private: void set (ICollection<IdentityUserRole^>^ value);
}
abstract Roles : ICollection<IdentityUserRole> with get, private set 
override Roles : ICollection<IdentityUserRole> with get, private set
function get Roles () : ICollection<IdentityUserRole>
private function set Roles (value : ICollection<IdentityUserRole>)

Property Value

Type: System.Collections.Generic.ICollection<IdentityUserRole>

See Also

Reference

IdentityUser Class

Microsoft.AspNet.Identity.EntityFramework Namespace