次の方法で共有


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

定義

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

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

パラメーター

peeringServiceName
String

ピアリングの名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

peeringServiceName が null です。

適用対象