Bagikan melalui


CloudToDeviceMethod Constructors

Definition

Overloads

CloudToDeviceMethod(String)

Creates an instance of CloudToDeviceMethod type with Zero timeout

CloudToDeviceMethod(String, TimeSpan)

Creates an instance of CloudToDeviceMethod type with Zero timeout

CloudToDeviceMethod(String, TimeSpan, TimeSpan)

Creates an instance of CloudToDeviceMethod type

CloudToDeviceMethod(String)

Creates an instance of CloudToDeviceMethod type with Zero timeout

public CloudToDeviceMethod (string methodName);
new Microsoft.Azure.Devices.CloudToDeviceMethod : string -> Microsoft.Azure.Devices.CloudToDeviceMethod
Public Sub New (methodName As String)

Parameters

methodName
String

Method name

Exceptions

If methodName is null or whitespace

Applies to

CloudToDeviceMethod(String, TimeSpan)

Creates an instance of CloudToDeviceMethod type with Zero timeout

public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout);
new Microsoft.Azure.Devices.CloudToDeviceMethod : string * TimeSpan -> Microsoft.Azure.Devices.CloudToDeviceMethod
Public Sub New (methodName As String, responseTimeout As TimeSpan)

Parameters

methodName
String

Method name

responseTimeout
TimeSpan

Method timeout

Exceptions

If methodName is null or whitespace

Applies to

CloudToDeviceMethod(String, TimeSpan, TimeSpan)

Creates an instance of CloudToDeviceMethod type

public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout, TimeSpan connectionTimeout);
new Microsoft.Azure.Devices.CloudToDeviceMethod : string * TimeSpan * TimeSpan -> Microsoft.Azure.Devices.CloudToDeviceMethod
Public Sub New (methodName As String, responseTimeout As TimeSpan, connectionTimeout As TimeSpan)

Parameters

methodName
String

Method name

responseTimeout
TimeSpan

Method timeout

connectionTimeout
TimeSpan

Device connection timeout

Exceptions

If methodName is null or whitespace

Applies to