DataFileCollection.Add Method
Adds a DataFile object to the DataFileCollection collection.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Add ( _
dataFile As DataFile _
)
'Usage
Dim instance As DataFileCollection
Dim dataFile As DataFile
instance.Add(dataFile)
public void Add(
DataFile dataFile
)
public:
void Add(
DataFile^ dataFile
)
member Add :
dataFile:DataFile -> unit
public function Add(
dataFile : DataFile
)
Parameters
- dataFile
Type: Microsoft.SqlServer.Management.Smo.DataFile
A DataFile object that specifies the data file to be added to the DataFileCollection collection.