共用方式為


ConnectionStatusChangesHandler Delegate

Definition

Delegate for connection status changed.

public delegate void ConnectionStatusChangesHandler(ConnectionStatus status, ConnectionStatusChangeReason reason);
type ConnectionStatusChangesHandler = delegate of ConnectionStatus * ConnectionStatusChangeReason -> unit
Public Delegate Sub ConnectionStatusChangesHandler(status As ConnectionStatus, reason As ConnectionStatusChangeReason)

Parameters

status
ConnectionStatus

The updated connection status

reason
ConnectionStatusChangeReason

The reason for the connection status change

Remarks

This can be set for both DeviceClient and ModuleClient.

Applies to