次の方法で共有


ScopeConnectionCollection.GetIfExistsAsync(String, CancellationToken) メソッド

定義

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

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

パラメーター

scopeConnectionName
String

テナント間接続の名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

scopeConnectionName が null です。

適用対象