Condividi tramite


DevicesClient.GetRegistryStatisticsAsync(CancellationToken) Method

Definition

Gets the registry statistics for your IoT hub.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.RegistryStatistics> GetRegistryStatisticsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRegistryStatisticsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.RegistryStatistics>
override this.GetRegistryStatisticsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.RegistryStatistics>
Public Overridable Function GetRegistryStatisticsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of RegistryStatistics)

Parameters

cancellationToken
CancellationToken

The token which allows the operation to be canceled.

Returns

The registry statistics for you Iot hub.

Exceptions

If IoT hub responded to the request with a non-successful status code. For example, if the provided request was throttled, IotHubServiceException with ThrottlingException is thrown. For a complete list of possible error cases, see IotHubServiceErrorCode.

If the HTTP request fails due to an underlying issue such as network connectivity, DNS failure, or server certificate validation.

If the provided cancellation token has requested cancellation.

Applies to