Class constructor. Initializes a new instance of the DataConnectionStateChangedEventArgs class and provides the old and new states.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.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.DataConnectionStateThe state of the data connection prior to change.
newState
Type: Microsoft.VisualStudio.Data.DataConnectionStateThe state of the data connection subsequent to change.
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
DataConnectionStateChangedEventArgs Members