Compartilhar via


GenericResourceCollection.Get(ResourceIdentifier, CancellationToken) Método

Definição

Obtém um recurso por ID.

public virtual Azure.Response<Azure.ResourceManager.Resources.GenericResource> Get (Azure.Core.ResourceIdentifier resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.GenericResource>
override this.Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.GenericResource>
Public Overridable Function Get (resourceId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GenericResource)

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