Compartir a través de


LocalNetworkGatewayCollection.GetIfExists(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}
  • IdLocalNetworkGateways_Get de operación
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.LocalNetworkGatewayResource> GetIfExists (string localNetworkGatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.LocalNetworkGatewayResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.LocalNetworkGatewayResource>
Public Overridable Function GetIfExists (localNetworkGatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of LocalNetworkGatewayResource)

Parámetros

localNetworkGatewayName
String

El nombre de la puerta de enlace de red local.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

localNetworkGatewayName es una cadena vacía y se espera que no esté vacía.

localNetworkGatewayName es null.

Se aplica a