次の方法で共有


DeviceRegistryExtensions.GetDeviceRegistryAssetsAsync Method

Definition

List Asset resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/assets
  • Operation Id: Assets_ListBySubscription
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
public static Azure.AsyncPageable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource> GetDeviceRegistryAssetsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDeviceRegistryAssetsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource>
<Extension()>
Public Function GetDeviceRegistryAssetsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DeviceRegistryAssetResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of DeviceRegistryAssetResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to