DevicesClient.GetDeviceClassAsync(String, CancellationToken) Method

Definition

Gets the properties of a device class.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.IoT.DeviceUpdate.Models.DeviceClass>> GetDeviceClassAsync (string deviceClassId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeviceClassAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.IoT.DeviceUpdate.Models.DeviceClass>>
override this.GetDeviceClassAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.IoT.DeviceUpdate.Models.DeviceClass>>
Public Overridable Function GetDeviceClassAsync (deviceClassId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeviceClass))

Parameters

deviceClassId
System.String

Device class identifier.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<Azure.IoT.DeviceUpdate.Models.DeviceClass>>

Applies to