FileGroup.EnumObjects Method

Enumerates the system and user-defined tables, indexes, and statistics mechanisms stored within a file group.

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

Syntax

'Declaration
Public Function EnumObjects As SqlSmoObject()
'Usage
Dim instance As FileGroup
Dim returnValue As SqlSmoObject()

returnValue = instance.EnumObjects()
public SqlSmoObject[] EnumObjects()
public:
array<SqlSmoObject^>^ EnumObjects()
member EnumObjects : unit -> SqlSmoObject[] 
public function EnumObjects() : SqlSmoObject[]

Return Value

Type: array<Microsoft.SqlServer.Management.Smo.SqlSmoObject[]
A SqlSmoObject object array that contains all the objects within the file group.