共用方式為


DataFileCollection.Remove 方法 (DataFile)

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Remove ( _
    dataFile As DataFile _
)
'用途
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
)

參數

範例

使用集合

請參閱

參考

DataFileCollection 類別

Remove 多載

Microsoft.SqlServer.Management.Smo 命名空間