.NET Framework 4.6 and 4.5
Provides data for the state change event of a .NET Framework data provider.
type StateChangeEventArgs =
The StateChangeEventArgs type exposes the following members.
|StateChangeEventArgs||Initializes a new instance of the StateChangeEventArgs class, when given the original state and the current state of the object.|
|CurrentState||Gets the new state of the connection. The connection object will be in the new state already when the event is fired.|
|OriginalState||Gets the original state of the connection.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The following example shows how to use the StateChange event within the SqlConnection class.
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
Any public static
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.