ServiceFabricServiceCollection.GetAsync(String, CancellationToken) メソッド

定義

Service Fabric サービス リソースを作成するか、Service Fabric アプリケーション リソースで作成中に取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}
  • 操作IdServices_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabric.ServiceFabricServiceResource>> GetAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabric.ServiceFabricServiceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabric.ServiceFabricServiceResource>>
Public Overridable Function GetAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceFabricServiceResource))

パラメーター

serviceName
String

{applicationName}~{serviceName} の形式のサービス リソースの名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

serviceName が null です。

適用対象