Freigeben über


PacketCaptureCollection.GetIfExists(String, CancellationToken) Methode

Definition

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

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}
  • Vorgang IdPacketCaptures_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.PacketCaptureResource> GetIfExists (string packetCaptureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.PacketCaptureResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.PacketCaptureResource>
Public Overridable Function GetIfExists (packetCaptureName As String, Optional cancellationToken As CancellationToken = Nothing) As 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: