Share via


IDatabase.Roles Property

Gets a collection of all roles that are defined in the database.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
ReadOnly Property Roles As IMetadataCollection(Of IDatabaseRole)
    Get
'Usage
Dim instance As IDatabase
Dim value As IMetadataCollection(Of IDatabaseRole)

value = instance.Roles
IMetadataCollection<IDatabaseRole> Roles { get; }
property IMetadataCollection<IDatabaseRole^>^ Roles {
    IMetadataCollection<IDatabaseRole^>^ get ();
}
abstract Roles : IMetadataCollection<IDatabaseRole>
function get Roles () : IMetadataCollection<IDatabaseRole>

Property Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<IDatabaseRole>
The IMetadataCollection<T> of IDatabaseRole that contains all roles defined in the database.