Partilhar via


GalleryCollection.GetAsync Método

Definição

Recupera informações sobre um Galeria de Imagens Compartilhadas.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}
  • IdGalleries_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryResource>> GetAsync (string galleryName, Azure.ResourceManager.Compute.Models.SelectPermission? select = default, Azure.ResourceManager.Compute.Models.GalleryExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Nullable<Azure.ResourceManager.Compute.Models.SelectPermission> * Nullable<Azure.ResourceManager.Compute.Models.GalleryExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryResource>>
override this.GetAsync : string * Nullable<Azure.ResourceManager.Compute.Models.SelectPermission> * Nullable<Azure.ResourceManager.Compute.Models.GalleryExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryResource>>
Public Overridable Function GetAsync (galleryName As String, Optional select As Nullable(Of SelectPermission) = Nothing, Optional expand As Nullable(Of GalleryExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GalleryResource))

Parâmetros

galleryName
String

O nome do Galeria de Imagens Compartilhadas.

select
Nullable<SelectPermission>

A expressão select a ser aplicada na operação.

expand
Nullable<GalleryExpand>

A opção expandir consulta a ser aplicada na operação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

galleryName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

galleryName é nulo.

Aplica-se a