Database.EnumObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EnumObjects(DatabaseObjectTypes) | |
EnumObjects() | |
EnumObjects(DatabaseObjectTypes, SortOrder) |
The ListObjects method returns a SQLObjectList object that enumerates the system and user-defined objects defining the database referenced. |
EnumObjects(DatabaseObjectTypes)
public System.Data.DataTable EnumObjects (Microsoft.SqlServer.Management.Smo.DatabaseObjectTypes types);
member this.EnumObjects : Microsoft.SqlServer.Management.Smo.DatabaseObjectTypes -> System.Data.DataTable
Public Function EnumObjects (types As DatabaseObjectTypes) As DataTable
Parameters
- types
- DatabaseObjectTypes
Returns
Applies to
EnumObjects()
public System.Data.DataTable EnumObjects ();
member this.EnumObjects : unit -> System.Data.DataTable
Public Function EnumObjects () As DataTable
Returns
Applies to
EnumObjects(DatabaseObjectTypes, SortOrder)
The ListObjects method returns a SQLObjectList object that enumerates the system and user-defined objects defining the database referenced.
public System.Data.DataTable EnumObjects (Microsoft.SqlServer.Management.Smo.DatabaseObjectTypes types, Microsoft.SqlServer.Management.Smo.SortOrder order);
member this.EnumObjects : Microsoft.SqlServer.Management.Smo.DatabaseObjectTypes * Microsoft.SqlServer.Management.Smo.SortOrder -> System.Data.DataTable
Public Function EnumObjects (types As DatabaseObjectTypes, order As SortOrder) As DataTable
Parameters
- types
- DatabaseObjectTypes
- order
- SortOrder