共用方式為


AgentCore.Status 事件

Occurs when a running agent returns status information.

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

語法

'宣告
Public Event Status As AgentCore.StatusEventHandler
'用途
Dim instance As AgentCore 
Dim handler As AgentCore.StatusEventHandler 

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

備註

The Status event can be handled during synchronous agent execution to display agent status information in an application.

The Status event is handled by that AgentCore.StatusEventHandler delegate, which returns agent status information.

To handle the Status event, a Microsoft Visual Basic program must declare WithEvents of the appropriate type.

請參閱

參考

AgentCore 類別

Microsoft.SqlServer.Replication 命名空間