Compartilhar via


NetworkDeviceInterfaceCollection.GetIfExists Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}
  • Operação IdNetworkInterfaces_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceInterfaceResource> GetIfExists (string networkInterfaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceInterfaceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceInterfaceResource>
Public Overridable Function GetIfExists (networkInterfaceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkDeviceInterfaceResource)

Parâmetros

networkInterfaceName
String

Nome do Adaptador de Rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

networkInterfaceName é nulo.

Aplica-se a