Compartilhar via


VpnSiteLinkConnectionCollection.GetIfExists(String, CancellationToken) Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}
  • Operação IdVpnSiteLinkConnections_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.VpnSiteLinkConnectionResource> GetIfExists (string linkConnectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.VpnSiteLinkConnectionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.VpnSiteLinkConnectionResource>
Public Overridable Function GetIfExists (linkConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of VpnSiteLinkConnectionResource)

Parâmetros

linkConnectionName
String

O nome da conexão vpn.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

linkConnectionName é nulo.

Aplica-se a