MethodRequest Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The data structure that represents a method request.
public sealed class MethodRequest
type MethodRequest = class
Public NotInheritable Class MethodRequest
- Inheritance
-
MethodRequest
Constructors
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. |
MethodRequest(String, Byte[]) |
Initializes a new instance of this class. |
MethodRequest(String, Byte[], Nullable<TimeSpan>, Nullable<TimeSpan>) |
Initializes a new instance of this class. |
MethodRequest(String, Nullable<TimeSpan>, Nullable<TimeSpan>) |
Initializes a new instance of this class without any method data. |
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應