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.

请参阅

参考

Microsoft.SqlServer.Replication 命名空间

其他资源

如何同步请求订阅(RMO 编程)

如何同步推送订阅(RMO 编程)

Sales Orders Sample Implementation Details