Właściwość IDatabase.Roles
Pobiera kolekcja wszystkich ról, które są zdefiniowane w bazie danych.
Przestrzeń nazw: Microsoft.SqlServer.Management.SqlParser.Metadata
Zestaw: Microsoft.SqlServer.Management.SqlParser (w Microsoft.SqlServer.Management.SqlParser.dll)
Składnia
'Deklaracja
ReadOnly Property Roles As IMetadataCollection(Of IDatabaseRole)
Get
'Użycie
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>
Wartość właściwości
Typ: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<IDatabaseRole>
IMetadataCollection<T> z IDatabaseRole zawiera wszystkie role zdefiniowane w bazie danych.
Zobacz także