Partilhar via


GalleryCollection.Exists Método

Definição

Verifica se o recurso existe no azure.

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

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 esperava-se que não estivesse vazia.

galleryName é nulo.

Aplica-se a