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)

Syntax

'Declaration
Public NotInheritable Class DataFileCollection _
    Inherits SimpleObjectCollectionBase
'Usage
Dim instance As DataFileCollection
public sealed class DataFileCollection : SimpleObjectCollectionBase
public ref class DataFileCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type DataFileCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class DataFileCollection extends SimpleObjectCollectionBase

Remarks

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.