次の方法で共有


P2SVpnGatewayCollection.GetIfExists(String, CancellationToken) メソッド

定義

サービスからこのリソースの詳細の取得を試みます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}
  • 操作IdP2sVpnGateways_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.P2SVpnGatewayResource> GetIfExists (string gatewayName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.P2SVpnGatewayResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.P2SVpnGatewayResource>
Public Overridable Function GetIfExists (gatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of P2SVpnGatewayResource)

パラメーター

gatewayName
String

ゲートウェイの名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

gatewayName は空の文字列であり、空でないと想定されていました。

gatewayName が null です。

適用対象