DataConnectionStateChangedEventArgs Constructor

Definition

Initializes a new instance of the DataConnectionStateChangedEventArgs class with the old and new connection states.

public:
 DataConnectionStateChangedEventArgs(Microsoft::VisualStudio::Data::Services::DataConnectionState oldState, Microsoft::VisualStudio::Data::Services::DataConnectionState newState);
public DataConnectionStateChangedEventArgs (Microsoft.VisualStudio.Data.Services.DataConnectionState oldState, Microsoft.VisualStudio.Data.Services.DataConnectionState newState);
new Microsoft.VisualStudio.Data.Services.DataConnectionStateChangedEventArgs : Microsoft.VisualStudio.Data.Services.DataConnectionState * Microsoft.VisualStudio.Data.Services.DataConnectionState -> Microsoft.VisualStudio.Data.Services.DataConnectionStateChangedEventArgs
Public Sub New (oldState As DataConnectionState, newState As DataConnectionState)

Parameters

oldState
DataConnectionState

A value from DataConnectionState representing the state the data connection was in before the last state change.

newState
DataConnectionState

A value from DataConnectionState representing the new state of the data connection.

Applies to