Share via


DirectMethodRequest.ConnectionTimeout Property

Definition

The amount of time given to the service to connect to the device.

[Newtonsoft.Json.JsonIgnore]
public TimeSpan? ConnectionTimeout { get; set; }
[<Newtonsoft.Json.JsonIgnore>]
member this.ConnectionTimeout : Nullable<TimeSpan> with get, set
Public Property ConnectionTimeout As Nullable(Of TimeSpan)

Property Value

Attributes
Newtonsoft.Json.JsonIgnoreAttribute

Remarks

A timeout may occur if this value is set to zero and the target device is not connected to the cloud. If the value is greater than zero, it may also occur if the cloud fails to deliver the request to the target device.

This value is propagated to the service in terms of seconds, so this value does not have a level of precision below seconds. For example, a value of TimeSpan.FromMilliseconds(500) will be interpreted as 0 seconds (using ConnectTimeout.TotalSeconds).

Applies to