DataConnectionState Enumeration
Specifies the current state of the data connection.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration DataConnectionState
[FlagsAttribute]
public enum DataConnectionState
[FlagsAttribute]
public enum class DataConnectionState
[<FlagsAttribute>]
type DataConnectionState
public enum DataConnectionState
Members
Member name | Description | |
---|---|---|
Closed | The data connection is closed. | |
Open | The data connection is open. | |
Broken | The data connection was previously open, but has been broken for unknown reasons. |
Remarks
A connection may be "broken" under many circumstances. For example, a computer running Visual Studio with an open connection that is disconnected from the network would cause the connection to fall into a broken state.
Note
The only possible interaction with a connection in the broken state is to close it.
This value cannot change on its own; rather, it is set as the result of attempting to act on the connection, such as opening it, running a command against it, or closing it.
Note, too, that a connection typically gets into the broken state only because of an attempt to interact with it. For example, a connection can remain in the Open state after you disconnect the network cable, but the next time you attempt to execute a command, it would move into the Broken state. This points out how it is not normally possible to know with certainty whether a connection is broken.