Freigeben über


PacketCaptureCollection.GetIfExistsAsync(String, CancellationToken) Methode

Definition

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

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

Parameter

packetCaptureName
String

Der Name der Paketerfassungssitzung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

packetCaptureName ist NULL.

Gilt für: