你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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