Share via


DataConnectionSupport.RaiseStateChanged Method

Raises the state changed event on the enclosing DataConnection instance.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Protected Sub RaiseStateChanged ( _
    oldState As DataConnectionState, _
    newState As DataConnectionState _
)
protected void RaiseStateChanged(
    DataConnectionState oldState,
    DataConnectionState newState
)
protected:
void RaiseStateChanged(
    DataConnectionState oldState, 
    DataConnectionState newState
)
member RaiseStateChanged : 
        oldState:DataConnectionState * 
        newState:DataConnectionState -> unit 
protected function RaiseStateChanged(
    oldState : DataConnectionState, 
    newState : DataConnectionState
)

Parameters

Remarks

The default implementation of the DataConnectionState class provides three states: open, closed, and broken.

.NET Framework Security

See Also

Reference

DataConnectionSupport Class

Microsoft.VisualStudio.Data Namespace