FileGroup.EnumObjects 方法

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function EnumObjects As SqlSmoObject()
用法
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[]

返回值

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

示例

使用数据库对象

请参阅

参考

FileGroup 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用文件和文件组

sys.objects (Transact-SQL)