Compartilhar via


Classe ServerRoleCollection

The ServerRoleCollection class represents a collection of ServerRole objects that represent all the server roles that are defined on a table.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class ServerRoleCollection _
    Inherits SimpleObjectCollectionBase
'Uso
Dim instance As ServerRoleCollection
public sealed class ServerRoleCollection : SimpleObjectCollectionBase
public ref class ServerRoleCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type ServerRoleCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class ServerRoleCollection extends SimpleObjectCollectionBase

Comentários

A ServerRoleCollection object can be used to gain access to a set of server roles. You can use the Item property to return a specific ServerRole object.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.