次の方法で共有


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

定義

[説明] Web、モバイル、または API アプリの詳細を取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}
  • 操作IdWebApps_GetSlot
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.WebSiteSlotResource>> GetAsync (string slot, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.WebSiteSlotResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.WebSiteSlotResource>>
Public Overridable Function GetAsync (slot As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WebSiteSlotResource))

パラメーター

slot
String

デプロイ スロットの名前。 既定では、この API は運用スロットを返します。

cancellationToken
CancellationToken

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

戻り値

例外

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

slot が null です。

適用対象