MethodRequest Constructors
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.
Overloads
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, Nullable<TimeSpan>, Nullable<TimeSpan>) |
Initializes a new instance of this class without any method data. |
MethodRequest(String, Byte[], Nullable<TimeSpan>, Nullable<TimeSpan>) |
Initializes a new instance of this class. |
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.
public MethodRequest (string name);
new Microsoft.Azure.Devices.Client.MethodRequest : string -> Microsoft.Azure.Devices.Client.MethodRequest
Public Sub New (name As String)
Parameters
- name
- String
The method name.
Applies to
MethodRequest(String, Byte[])
Initializes a new instance of this class.
public MethodRequest (string name, byte[] data);
new Microsoft.Azure.Devices.Client.MethodRequest : string * byte[] -> Microsoft.Azure.Devices.Client.MethodRequest
Public Sub New (name As String, data As Byte())
Parameters
- name
- String
The method name.
- data
- Byte[]
The method data.
Applies to
MethodRequest(String, Nullable<TimeSpan>, Nullable<TimeSpan>)
Initializes a new instance of this class without any method data.
public MethodRequest (string name, TimeSpan? responseTimeout, TimeSpan? connectionTimeout);
new Microsoft.Azure.Devices.Client.MethodRequest : string * Nullable<TimeSpan> * Nullable<TimeSpan> -> Microsoft.Azure.Devices.Client.MethodRequest
Public Sub New (name As String, responseTimeout As Nullable(Of TimeSpan), connectionTimeout As Nullable(Of TimeSpan))
Parameters
- name
- String
The method name.
Applies to
MethodRequest(String, Byte[], Nullable<TimeSpan>, Nullable<TimeSpan>)
Initializes a new instance of this class.
public MethodRequest (string name, byte[] data, TimeSpan? responseTimeout, TimeSpan? connectionTimeout);
new Microsoft.Azure.Devices.Client.MethodRequest : string * byte[] * Nullable<TimeSpan> * Nullable<TimeSpan> -> Microsoft.Azure.Devices.Client.MethodRequest
Public Sub New (name As String, data As Byte(), responseTimeout As Nullable(Of TimeSpan), connectionTimeout As Nullable(Of TimeSpan))
Parameters
- name
- String
The method name.
- data
- Byte[]
The method data.
Applies to
Azure SDK for .NET