Compartir a través de


GenericResourceCollection.Exists Método

Definición

Intenta obtener detalles de este recurso del servicio.

public virtual Azure.Response<bool> Exists (Azure.Core.ResourceIdentifier resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (resourceId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As 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