FileGroup.Files 属性

Represents a collection of DataFile objects. Each DataFile object represents a file belonging to the file group.

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

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(DataFile))> _
Public ReadOnly Property Files As DataFileCollection 
    Get
用法
Dim instance As FileGroup 
Dim value As DataFileCollection 

value = instance.Files
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(DataFile))]
public DataFileCollection Files { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(DataFile))]
public:
property DataFileCollection^ Files {
    DataFileCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(DataFile))>]
member Files : DataFileCollection
function get Files () : DataFileCollection

属性值

类型:Microsoft.SqlServer.Management.Smo.DataFileCollection
A DataFileCollection object that represents all the data files defined on the database.

示例

使用数据库对象

请参阅

参考

FileGroup 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用文件和文件组

CREATE TABLE (Transact-SQL)