ComputeExtensions.GetSharedGalleriesAsync Method

Definition

List shared galleries by subscription id or tenant id. <item> Mocking. To mock this method, please mock GetSharedGalleriesAsync(AzureLocation, Nullable<SharedToValue>, CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryData> GetSharedGalleriesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.SharedToValue? sharedTo = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleriesAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.SharedGalleryData>
<Extension()>
Public Function GetSharedGalleriesAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional sharedTo As Nullable(Of SharedToValue) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SharedGalleryData)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

sharedTo
Nullable<SharedToValue>

The query parameter to decide what shared galleries to fetch when doing listing operations.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SharedGalleryData that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to