次の方法で共有


ExpressRoutePortsLocationCollection.GetIfExists メソッド

定義

サービスからこのリソースの詳細を取得しようとします。

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

パラメーター

locationName
String

要求された ExpressRoutePort ピアリングの場所の名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

locationName が null です。

適用対象