DevicesClient.GetRegistryStatisticsAsync(CancellationToken) 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.
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
Azure SDK for .NET
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk