Compartir a través de


GenericResourceCollection.ExistsAsync Método

Definición

Intenta obtener detalles de este recurso del servicio.

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

Identificador completo del recurso, incluido el nombre del recurso y el tipo de recurso. Use el formato /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

resourceId es null.

Se aplica a