次の方法で共有


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

定義

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

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

パラメーター

componentName
String

コンポーネントの名前です。

cancellationToken
CancellationToken

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

戻り値

例外

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

componentName が null です。

適用対象