Partilhar via


IPAllocationCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}
  • IdIpAllocations_Get de operação
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.IPAllocationResource>> GetIfExistsAsync (string ipAllocationName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.IPAllocationResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.IPAllocationResource>>
Public Overridable Function GetIfExistsAsync (ipAllocationName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of IPAllocationResource))

Parâmetros

ipAllocationName
String

O nome da IpAllocation.

expand
String

Expande os recursos referenciados.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

ipAllocationName é nulo.

Aplica-se a