MethodRequest Class

Definition

The data structure that represents a method request.

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

Constructors

MethodRequest(String, Byte[], Nullable<TimeSpan>, Nullable<TimeSpan>)

Initializes a new instance of this class.

MethodRequest(String, Byte[])

Initializes a new instance of this class.

MethodRequest(String, Nullable<TimeSpan>, Nullable<TimeSpan>)

Initializes a new instance of this class without any method data.

MethodRequest(String)

Initializes a new instance of this class with without any method data and extra time for device to connect and send a response.

Properties

ConnectionTimeout

The device connection timeout value. This value is the amount of time upon invocation of a direct method that IoT hub service must await for a disconnected device to come online. The default value is 0, meaning that devices must already be online upon invocation of a direct method. The maximum value for connectTimeoutInSeconds is 300 seconds. Note: This value is relevant only when invoking methods from one edge module to another.

Data

The method data.

DataAsJson

The method data in Json format.

Name

The method name.

ResponseTimeout

The method response timeout value. This value is the amount of time that IoT hub service must await for completion of a direct method execution on a device. The minimum and maximum values are 5 and 300 seconds. Note: This value is relevant only when invoking methods from one edge module to another.

Applies to