DataFileCollection.Add 方法
Adds a DataFile object to the DataFileCollection collection.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Add ( _
dataFile As DataFile _
)
'用途
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
)
參數
- dataFile
型別:Microsoft.SqlServer.Management.Smo.DataFile
A DataFile object that specifies the data file to be added to the DataFileCollection collection.