Dela via


DataFileCollection.Remove Method (DataFile)

Removes a DataFile object from the DataFileCollection collection by specifying the object.

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

Syntax

'Declaration
Public Sub Remove ( _
    dataFile As DataFile _
)
'Usage
Dim instance As DataFileCollection
Dim dataFile As DataFile

instance.Remove(dataFile)
public void Remove(
    DataFile dataFile
)
public:
void Remove(
    DataFile^ dataFile
)
member Remove : 
        dataFile:DataFile -> unit 
public function Remove(
    dataFile : DataFile
)

Parameters