Classe DatabaseCollection

The DatabaseCollection class represents a collection of Database objects that represent all the databases defined on the instance of SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DatabaseCollection _
    Inherits SimpleObjectCollectionBase
'Utilisation
Dim instance As DatabaseCollection
public sealed class DatabaseCollection : SimpleObjectCollectionBase
public ref class DatabaseCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type DatabaseCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class DatabaseCollection extends SimpleObjectCollectionBase

Notes

A DatabaseCollection object can be used to gain access to a set of databases. You can use the Item property to return a specific Database object.

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.