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
'宣言
Public Sub New ( _
oldState As DataConnectionState, _
newState As DataConnectionState _
)
'使用
Dim oldState As DataConnectionState
Dim newState As DataConnectionState
Dim instance As New DataConnectionStateChangedEventArgs(oldState, _
newState)
public DataConnectionStateChangedEventArgs(
DataConnectionState oldState,
DataConnectionState newState
)
public:
DataConnectionStateChangedEventArgs(
DataConnectionState oldState,
DataConnectionState newState
)
public function DataConnectionStateChangedEventArgs(
oldState : DataConnectionState,
newState : DataConnectionState
)
Parameters
oldState
Type: Microsoft.VisualStudio.Data.Services.DataConnectionStateA value from DataConnectionState representing the state the data connection was in before the last state change.
newState
Type: Microsoft.VisualStudio.Data.Services.DataConnectionStateA value from DataConnectionState representing the new state of the data connection.
Permissions
- 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.
See Also
Reference
DataConnectionStateChangedEventArgs Class