Partilhar via


NetworkDeviceCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém os detalhes do recurso dispositivo de rede.

  • 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.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>> GetAsync (string networkDeviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>>
Public Overridable Function GetAsync (networkDeviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(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