Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
oldState
Type: Microsoft.VisualStudio.Data.DataConnectionStateThe state of the connection prior to raising the StateChanged event.
newState
Type: Microsoft.VisualStudio.Data.DataConnectionStateThe state of the connection subsequent to raising the StateChanged event.
Remarks
The default implementation of the DataConnectionState class provides three states: open, closed, and broken.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.