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

WebSiteResource.GetPublishingProfileXmlWithSecretsAsync 方法

定义

的说明 获取应用 (或部署槽的发布配置文件(如果) 指定)。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml
  • 操作IdWebApps_ListPublishingProfileXmlWithSecrets
public virtual System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>> GetPublishingProfileXmlWithSecretsAsync (Azure.ResourceManager.AppService.Models.CsmPublishingProfile publishingProfileOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPublishingProfileXmlWithSecretsAsync : Azure.ResourceManager.AppService.Models.CsmPublishingProfile * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
override this.GetPublishingProfileXmlWithSecretsAsync : Azure.ResourceManager.AppService.Models.CsmPublishingProfile * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
Public Overridable Function GetPublishingProfileXmlWithSecretsAsync (publishingProfileOptions As CsmPublishingProfile, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Stream))

参数

publishingProfileOptions
CsmPublishingProfile

指定用于发布配置文件的 publishingProfileOptions。 例如,使用 {“format”: “FileZilla3”} 获取 FileZilla 发布配置文件。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

publishingProfileOptions 为 null。

适用于