RoleManager<TRole>.Roles Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an IQueryable collection of Roles if the persistence store is an IQueryableRoleStore<TRole>, otherwise throws a NotSupportedException.
public:
virtual property System::Linq::IQueryable<TRole> ^ Roles { System::Linq::IQueryable<TRole> ^ get(); };
public virtual System.Linq.IQueryable<TRole> Roles { get; }
member this.Roles : System.Linq.IQueryable<'Role (requires 'Role : null)>
Public Overridable ReadOnly Property Roles As IQueryable(Of TRole)
Property Value
An IQueryable collection of Roles if the persistence store is an IQueryableRoleStore<TRole>.
Exceptions
Thrown if the persistence store is not an IQueryableRoleStore<TRole>.
Remarks
Callers to this property should use SupportsQueryableRoles to ensure the backing role store supports returning an IQueryable list of roles.