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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for