DeviceClient.OpenAsync Method   
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
| OpenAsync(CancellationToken) | Explicitly open the DeviceClient instance.<param name="cancellationToken">A cancellation token to cancel the operation.</param><exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception> | 
| OpenAsync() | Explicitly open the DeviceClient instance. | 
OpenAsync(CancellationToken)
Explicitly open the DeviceClient instance.
<param name="cancellationToken">A cancellation token to cancel the operation.</param><exception cref="T:System.OperationCanceledException">Thrown when the operation has been canceled.</exception>public System.Threading.Tasks.Task OpenAsync(System.Threading.CancellationToken cancellationToken);member this.OpenAsync : System.Threading.CancellationToken -> System.Threading.Tasks.TaskPublic Function OpenAsync (cancellationToken As CancellationToken) As TaskParameters
- cancellationToken
- System.Threading.CancellationToken
Returns
Applies to
OpenAsync()
Explicitly open the DeviceClient instance.
public System.Threading.Tasks.Task OpenAsync();member this.OpenAsync : unit -> System.Threading.Tasks.TaskPublic Function OpenAsync () As Task