Compartilhar via


PacketCaptureCollection.GetIfExistsAsync(String, CancellationToken) Método

Definição

Tenta obter detalhes desse 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 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))

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 era esperado que não estivesse vazio.

packetCaptureName é nulo.

Aplica-se a