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 支持使用委托,但不支持声明新委托。
参数
- sender
类型:System. . :: . .Object
The source of the status event.
- e
类型:Microsoft.SqlServer.Replication. . :: . .StatusEventArgs
A StatusEventArgs object that contains the event data.
注释
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.