共用方式為


DacActionFinished 事件

從 DacStore Install()、Uninstall() 和 Upgrade() 方法傳回已完成的事件。

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

語法

'宣告
Public Event DacActionFinished As EventHandler(Of DacActionEventArgs)
'用途
Dim instance As DacStore
Dim handler As EventHandler(Of DacActionEventArgs)

AddHandler instance.DacActionFinished, handler
public event EventHandler<DacActionEventArgs> DacActionFinished
public:
 event EventHandler<DacActionEventArgs^>^ DacActionFinished {
    void add (EventHandler<DacActionEventArgs^>^ value);
    void remove (EventHandler<DacActionEventArgs^>^ value);
}
member DacActionFinished : IEvent<EventHandler<DacActionEventArgs>,
    DacActionEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。

備註

Register for the event handler to track install, uninstall, and upgrade events as they complete.