Share via


MethodResponse Class

Definition

The data structure represent the Device Twin Method that is used for triggering an activity on the device.

public sealed class MethodResponse
type MethodResponse = class
Public NotInheritable Class MethodResponse
Inheritance
MethodResponse

Constructors

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.

Properties

Result

Property containing entire result data. The formatting is checked for JSON correctness upon setting this property.

ResultAsJson

Property containing the entire result data, in JSON format.

Status

The response of the device client application method handler.

Applies to