Partager via


MobileNetworkPacketCaptureCollection.GetIfExistsAsync Méthode

Définition

Tente d’obtenir les détails de cette ressource à partir du service.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCaptures/{packetCapturesName}
  • IdPacketCaptures_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>> GetIfExistsAsync (string packetCaptureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>>
Public Overridable Function GetIfExistsAsync (packetCaptureName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of MobileNetworkPacketCaptureResource))

Paramètres

packetCaptureName
String

Nom de la session de capture de paquets.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

packetCaptureName est une chaîne vide et devait être non vide.

packetCaptureName a la valeur null.

S’applique à