Freigeben über


CommunityGalleryResource.GetCommunityGalleryImageAsync Methode

Definition

Rufen Sie ein Communitykatalogimage ab.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}
  • Vorgang IdCommunityGalleryImages_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CommunityGalleryImageResource>> GetCommunityGalleryImageAsync (string galleryImageName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommunityGalleryImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CommunityGalleryImageResource>>
override this.GetCommunityGalleryImageAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CommunityGalleryImageResource>>
Public Overridable Function GetCommunityGalleryImageAsync (galleryImageName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunityGalleryImageResource))

Parameter

galleryImageName
String

Der Name der Imagedefinition des Communitykatalogs.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

galleryImageName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

galleryImageName ist NULL.

Gilt für: