Partilhar via


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