共用方式為


Add 方法

Adds a LogFile object to the LogFileCollection collection.

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

語法

'宣告
Public Sub Add ( _
    logFile As LogFile _
)
'用途
Dim instance As LogFileCollection
Dim logFile As LogFile

instance.Add(logFile)
public void Add(
    LogFile logFile
)
public:
void Add(
    LogFile^ logFile
)
member Add : 
        logFile:LogFile -> unit 
public function Add(
    logFile : LogFile
)

參數

範例

使用集合