Share via


Classe TableCollection

The TableCollection class represents a collection of Table objects that represent all the tables on the referenced database.

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

Syntaxe

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

Notes

A TableCollection object can be used to gain access to a set of tables. You can use the Item property to return a specific Table 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.