Partilhar via


CommunityGalleryCollection.ExistsAsync Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}
  • IdCommunityGalleries_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Azure.Core.AzureLocation location, string publicGalleryName, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (location As AzureLocation, publicGalleryName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

location
AzureLocation

Local do recurso.

publicGalleryName
String

O nome público da galeria da comunidade.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

publicGalleryName é nulo.

Aplica-se a