Делегат 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.