你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSiteCollection.GetAllAsync 方法

定义

获取指定资源组中的所有 Web、移动和 API 应用的说明。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites
  • 操作IdWebApps_ListByResourceGroup
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppService.WebSiteResource> GetAllAsync (bool? includeSlots = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.WebSiteResource>
override this.GetAllAsync : Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.WebSiteResource>
Public Overridable Function GetAllAsync (Optional includeSlots As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of WebSiteResource)

参数

includeSlots
Nullable<Boolean>

指定 <strong>true</strong> 以在结果中包含部署槽位。 默认值为 false,它仅提供所有应用的生产槽。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 WebSiteResource ,可能需要循环访问多个服务请求。

适用于