RegistryManager.GetDeviceAsync 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
GetDeviceAsync(String) |
Retrieves the specified Device object. |
GetDeviceAsync(String, CancellationToken) |
Retrieves the specified Device object. |
GetDeviceAsync(String)
Retrieves the specified Device object.
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> GetDeviceAsync (string deviceId);
abstract member GetDeviceAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.GetDeviceAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function GetDeviceAsync (deviceId As String) As Task(Of Device)
Parameters
- deviceId
- String
The id of the device being retrieved.
Returns
The Device object.
Applies to
GetDeviceAsync(String, CancellationToken)
Retrieves the specified Device object.
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device> GetDeviceAsync (string deviceId, System.Threading.CancellationToken cancellationToken);
abstract member GetDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
override this.GetDeviceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Device>
Public Overridable Function GetDeviceAsync (deviceId As String, cancellationToken As CancellationToken) As Task(Of Device)
Parameters
- deviceId
- String
The id of the device being retrieved.
- cancellationToken
- CancellationToken
The token which allows the operation to be canceled.
Returns
The Device object.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET