Freigeben über


IPAllocationCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}
  • Vorgang IdIpAllocations_Get
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))

Parameter

ipAllocationName
String

Der Name der IpAllocation.

expand
String

Erweitert Ressourcen, auf die verwiesen wird.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

ipAllocationName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

ipAllocationName ist NULL.

Gilt für: