Compartilhar via


PacketCaptureCollection.GetIfExists(String, CancellationToken) Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}
  • Operação 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)

Parâmetros

packetCaptureName
String

O nome da sessão de captura de pacotes.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

packetCaptureName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

packetCaptureName é nulo.

Aplica-se a