Partilhar via


GenericResourceCollection.ExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Azure.Core.ResourceIdentifier resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (resourceId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

resourceId
ResourceIdentifier

A ID totalmente qualificada do recurso, incluindo o nome e o tipo de recurso. Use o formato /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

resourceId é nulo.

Aplica-se a