Compartilhar via


DeviceClient.SetConnectionStatusChangesHandler Método

Definição

Define um novo delegado para a conexão status retorno de chamada alterado. Se um delegado já estiver associado, ele será substituído pelo novo delegado. Observe que esse retorno de chamada nunca será chamado se o cliente estiver configurado para usar HTTP, pois esse protocolo é sem estado.

public void SetConnectionStatusChangesHandler (Microsoft.Azure.Devices.Client.ConnectionStatusChangesHandler statusChangesHandler);
member this.SetConnectionStatusChangesHandler : Microsoft.Azure.Devices.Client.ConnectionStatusChangesHandler -> unit
Public Sub SetConnectionStatusChangesHandler (statusChangesHandler As ConnectionStatusChangesHandler)

Parâmetros

statusChangesHandler
ConnectionStatusChangesHandler

Aplica-se a