共用方式為


AgentCore.StatusEventHandler 委派

Delegate that handles the Status event that is raised during agent execution.

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

語法

'宣告
<ComVisibleAttribute(False)> _
Public Delegate Sub StatusEventHandler ( _
    sender As Object, _
    e As StatusEventArgs _
)
'用途
Dim instance As New StatusEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void StatusEventHandler(
    Object sender,
    StatusEventArgs e
)
[ComVisibleAttribute(false)]
public delegate void StatusEventHandler(
    Object^ sender, 
    StatusEventArgs^ e
)
[<ComVisibleAttribute(false)>]
type StatusEventHandler = 
    delegate of 
        sender:Object * 
        e:StatusEventArgs -> unit
JScript 支援委託的使用,但不支援新委託的宣告。

參數

備註

The Status event returns a status message from the replication agent during synchronization. The AgentCore..::..StatusEventHandler returns a StatusEventArgs object when the Status event occurs during agent execution.