StorageCacheExtensions.GetStorageCaches 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
GetStorageCaches(ResourceGroupResource) |
Gets a collection of StorageCacheResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageCaches() instead. |
GetStorageCaches(SubscriptionResource, CancellationToken) |
Returns all caches the user has access to under a subscription.
|
GetStorageCaches(ResourceGroupResource)
- Source:
- StorageCacheExtensions.cs
- Source:
- StorageCacheExtensions.cs
Gets a collection of StorageCacheResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageCaches() instead.
public static Azure.ResourceManager.StorageCache.StorageCacheCollection GetStorageCaches (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetStorageCaches : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.StorageCache.StorageCacheCollection
<Extension()>
Public Function GetStorageCaches (resourceGroupResource As ResourceGroupResource) As StorageCacheCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of StorageCacheResources and their operations over a StorageCacheResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetStorageCaches(SubscriptionResource, CancellationToken)
- Source:
- StorageCacheExtensions.cs
- Source:
- StorageCacheExtensions.cs
Returns all caches the user has access to under a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches
- Operation Id: Caches_List
- Default Api Version: 2024-03-01
- Resource: StorageCacheResource
public static Azure.Pageable<Azure.ResourceManager.StorageCache.StorageCacheResource> GetStorageCaches (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageCaches : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.StorageCache.StorageCacheResource>
<Extension()>
Public Function GetStorageCaches (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of StorageCacheResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of StorageCacheResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET