DataFileCollection.Remove Method (String)

Removes a DataFile object from the DataFileCollection collection by specifying the name of the data file.

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

Syntax

'Declaration
Public Sub Remove ( _
    name As String _
)
'Usage
Dim instance As DataFileCollection 
Dim name As String

instance.Remove(name)
public void Remove(
    string name
)
public:
void Remove(
    String^ name
)
member Remove : 
        name:string -> unit
public function Remove(
    name : String
)

Parameters

Examples

Using Collections

See Also

Reference

DataFileCollection Class

Remove Overload

Microsoft.SqlServer.Management.Smo Namespace