Partilhar via


AgentCore.Status Event

Occurs when a running agent returns status information.

Namespace: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

Syntax

'Declaration
Public Event Status As StatusEventHandler
public event StatusEventHandler Status
public:
event StatusEventHandler^ Status {
    void add (StatusEventHandler^ value);
    void remove (StatusEventHandler^ value);
}
/** @event */
public void add_Status (StatusEventHandler value)

/** @event */
public void remove_Status (StatusEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

AgentCore Class
AgentCore Members
Microsoft.SqlServer.Replication Namespace