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

IDeploymentOperations.BeginGettingPackageByNameAsync 方法

定义

按名称获取包操作检索部署的云服务包,并将包文件存储在 Azure Blob 存储中。 以下包文件放置在存储中:云服务配置文件 (.cscfg) ,为云服务和各个角色提供配置设置,包括角色实例的数量;和服务包 (.cspkg) ,其中包含应用程序代码和服务定义文件。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj154121.aspx)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginGettingPackageByNameAsync (string serviceName, string deploymentName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentGetPackageParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member BeginGettingPackageByNameAsync : string * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentGetPackageParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function BeginGettingPackageByNameAsync (serviceName As String, deploymentName As String, parameters As DeploymentGetPackageParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

参数

serviceName
String

云服务的名称。

deploymentName
String

部署的名称。

parameters
DeploymentGetPackageParameters

提供给按名称获取包操作的参数。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Azure.AzureOperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于