Share via


ConnectionStatus Enum

Definition

Connection Status supported by DeviceClient

public enum ConnectionStatus
type ConnectionStatus = 
Public Enum ConnectionStatus
Inheritance
System.Enum
ConnectionStatus

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.

Applies to