语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ComputeExtensions.GetSharedGalleryData Method

Definition

Get a shared gallery by subscription id or tenant id. <item> Mocking. To mock this method, please mock GetSharedGalleryData(AzureLocation, String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.Compute.SharedGalleryData> GetSharedGalleryData(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string galleryUniqueName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleryData : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.SharedGalleryData>
<Extension()>
Public Function GetSharedGalleryData (subscriptionResource As SubscriptionResource, location As AzureLocation, galleryUniqueName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SharedGalleryData)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

galleryUniqueName
String

The unique name of the Shared Gallery.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to