DataFileCollection Class

The DataFileCollection class represents a collection of DataFile objects that represent all the data files defined on the parent object.

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


Public NotInheritable Class DataFileCollection _
    Inherits SimpleObjectCollectionBase
Dim instance As DataFileCollection
public sealed class DataFileCollection : SimpleObjectCollectionBase
public ref class DataFileCollection sealed : public SimpleObjectCollectionBase
type DataFileCollection =  
        inherit SimpleObjectCollectionBase
public final class DataFileCollection extends SimpleObjectCollectionBase


A DataFileCollection object can be used to gain access to a set of check constraints. You can use the Item property to return a specific DataFile object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.