Freigeben über


RoutingIntentCollection.GetIfExistsAsync(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}
  • Vorgangs-IdRoutingIntent_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.RoutingIntentResource>> GetIfExistsAsync (string routingIntentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.RoutingIntentResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.RoutingIntentResource>>
Public Overridable Function GetIfExistsAsync (routingIntentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of RoutingIntentResource))

Parameter

routingIntentName
String

Der Name des RoutingIntents.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

routingIntentName ist NULL.

Gilt für: