IdentityUser<TKey, TLogin, TRole, TClaim>.Roles Property
Gets the collection of roles for the user.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
public virtual ICollection<TRole> Roles { get; private set; }
public:
property ICollection<TRole>^ Roles {
virtual ICollection<TRole>^ get();
private: virtual void set(ICollection<TRole>^ value);
}
abstract Roles : ICollection<'TRole> with get, private set
override Roles : ICollection<'TRole> with get, private set
Public Overridable Property Roles As ICollection(Of TRole)
Get
Private Set
End Property
Property Value
Type: System.Collections.Generic.ICollection<TRole>
See Also
IdentityUser<TKey, TLogin, TRole, TClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity
Return to top