ConnectionManager.StateChange Event

The event that occurs when the instance of SQL Server changes state.

Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
Public Event StateChange As StateChangeEventHandler
public event StateChangeEventHandler StateChange
public:
event StateChangeEventHandler^ StateChange {
    void add (StateChangeEventHandler^ value);
    void remove (StateChangeEventHandler^ value);
}
/** @event */
public void add_StateChange (StateChangeEventHandler value)

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

Remarks

The event is handled by the specified event handler.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

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

ConnectionManager Class
ConnectionManager Members
Microsoft.SqlServer.Management.Common Namespace