Share via


MethodResponse Constructors

Definition

Overloads

MethodResponse(Int32)

Constructor which uses the input byte array as the body.

MethodResponse(Byte[], Int32)

Make a new instance of the return class and validates that the payload is correct JSON.

MethodResponse(Int32)

Constructor which uses the input byte array as the body.

public MethodResponse (int status);
new Microsoft.Azure.Devices.Client.MethodResponse : int -> Microsoft.Azure.Devices.Client.MethodResponse
Public Sub New (status As Integer)

Parameters

status
Int32

An integer code containing a method call status.

Applies to

MethodResponse(Byte[], Int32)

Make a new instance of the return class and validates that the payload is correct JSON.

public MethodResponse (byte[] result, int status);
new Microsoft.Azure.Devices.Client.MethodResponse : byte[] * int -> Microsoft.Azure.Devices.Client.MethodResponse
Public Sub New (result As Byte(), status As Integer)

Parameters

result
Byte[]

data returned by the method call.

status
Int32

status indicating success or failure.

Applies to