ConnectionStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Connection Status supported by DeviceClient
public enum ConnectionStatus
type ConnectionStatus =
Public Enum ConnectionStatus
- Inheritance
-
System.EnumConnectionStatus
Fields
Name | Value | Description |
---|---|---|
Disconnected | 0 | The device or module is disconnected. Inspect the associated ConnectionStatusChangeReason returned (and exception thrown, if any), and take appropriate action. |
Connected | 1 | The device or module is connected. The client is connected, and ready to be used. |
Disconnected_Retrying | 2 | The device or module is attempting to reconnect. The client is attempting to recover the connection. Do NOT close or open the client instance when it is retrying. |
Disabled | 3 | The device connection was closed. If you want to perform more operations on the device client, you should Dispose() and then re-initialize the client. |