DeviceClient.SetMethodHandler(String, MethodCallback, Object) Método

Definição

Cuidado

Please use SetMethodHandlerAsync.

Define um novo delegado para o método nomeado. Se um delegado já estiver associado ao método nomeado, ele será substituído pelo novo delegado.

[System.Obsolete("Please use SetMethodHandlerAsync.")]
public void SetMethodHandler (string methodName, Microsoft.Azure.Devices.Client.MethodCallback methodHandler, object userContext);
[<System.Obsolete("Please use SetMethodHandlerAsync.")>]
member this.SetMethodHandler : string * Microsoft.Azure.Devices.Client.MethodCallback * obj -> unit
Public Sub SetMethodHandler (methodName As String, methodHandler As MethodCallback, userContext As Object)

Parâmetros

methodName
String
methodHandler
MethodCallback
userContext
Object
Atributos

Aplica-se a