DataConnectionStateChangedEventArgs Constructor
Initializes a new instance of the DataConnectionStateChangedEventArgs class with the old and new connection states.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Déclaration
Public Sub New ( _
oldState As DataConnectionState, _
newState As DataConnectionState _
)
public DataConnectionStateChangedEventArgs(
DataConnectionState oldState,
DataConnectionState newState
)
public:
DataConnectionStateChangedEventArgs(
DataConnectionState oldState,
DataConnectionState newState
)
new :
oldState:DataConnectionState *
newState:DataConnectionState -> DataConnectionStateChangedEventArgs
public function DataConnectionStateChangedEventArgs(
oldState : DataConnectionState,
newState : DataConnectionState
)
Parameters
- oldState
Type: Microsoft.VisualStudio.Data.Services.DataConnectionState
A value from DataConnectionState representing the state the data connection was in before the last state change.
- newState
Type: Microsoft.VisualStudio.Data.Services.DataConnectionState
A value from DataConnectionState representing the new state of the data connection.
.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.