Partilhar via


NetworkDeviceCollection.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.ManagedNetworkFabric/networkDevices/{networkDeviceName}
  • IdNetworkDevices_Get de operação
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>> GetIfExistsAsync (string networkDeviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>>
Public Overridable Function GetIfExistsAsync (networkDeviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of NetworkDeviceResource))

Parâmetros

networkDeviceName
String

Nome do Dispositivo de Rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

networkDeviceName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

networkDeviceName é nulo.

Aplica-se a