共用方式為


CloseLog 方法

Closes the log.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Sub CloseLog
'用途
Dim instance As LogProvider

instance.CloseLog()
public void CloseLog()
public:
void CloseLog()
member CloseLog : unit -> unit 
public function CloseLog()

備註

This method should be called at the end of package execution, after all of the objects in the package have completed execution, or when the package terminates due to errors.

範例

The following code example shows how to close the log.

CloseLog();
CloseLog()