DeviceRegistryExtensions.GetDeviceRegistryAssets 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
GetDeviceRegistryAssets(ResourceGroupResource) |
Gets a collection of DeviceRegistryAssetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDeviceRegistryAssets() instead. |
GetDeviceRegistryAssets(SubscriptionResource, CancellationToken) |
List Asset resources by subscription ID
|
GetDeviceRegistryAssets(ResourceGroupResource)
- Source:
- DeviceRegistryExtensions.cs
Gets a collection of DeviceRegistryAssetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDeviceRegistryAssets() instead.
public static Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetCollection GetDeviceRegistryAssets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDeviceRegistryAssets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetCollection
<Extension()>
Public Function GetDeviceRegistryAssets (resourceGroupResource As ResourceGroupResource) As DeviceRegistryAssetCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of DeviceRegistryAssetResources and their operations over a DeviceRegistryAssetResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetDeviceRegistryAssets(SubscriptionResource, CancellationToken)
- Source:
- DeviceRegistryExtensions.cs
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.Pageable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource> GetDeviceRegistryAssets (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDeviceRegistryAssets : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource>
<Extension()>
Public Function GetDeviceRegistryAssets (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeviceRegistryAssetResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DeviceRegistryAssetResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET