Share via


DeploymentOperationsExtensions.GetPackageBySlotAsync 메서드

Asynchronously retrieves a cloud service package for a deployment based on where the application is deployed. The package files are stored in Azure Blob Storage.

네임스페이스: Microsoft.WindowsAzure.Management.Compute
어셈블리: Microsoft.WindowsAzure.Management.Compute.dll의 Microsoft.WindowsAzure.Management.Compute

사용량

‘사용 방법
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim deploymentSlot As DeploymentSlot
Dim parameters As DeploymentGetPackageParameters
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = DeploymentOperationsExtensions.GetPackageBySlotAsync(operations, serviceName, deploymentSlot, parameters)

구문

‘선언
<ExtensionAttribute> _
Public Shared Function GetPackageBySlotAsync ( _
    operations As IDeploymentOperations, _
    serviceName As String, _
    deploymentSlot As DeploymentSlot, _
    parameters As DeploymentGetPackageParameters _
) As Task(Of OperationStatusResponse)
[ExtensionAttribute] 
public static Task<OperationStatusResponse> GetPackageBySlotAsync (
    IDeploymentOperations operations,
    string serviceName,
    DeploymentSlot deploymentSlot,
    DeploymentGetPackageParameters parameters
)
[ExtensionAttribute] 
public:
static Task<OperationStatusResponse^>^ GetPackageBySlotAsync (
    IDeploymentOperations^ operations, 
    String^ serviceName, 
    DeploymentSlot deploymentSlot, 
    DeploymentGetPackageParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<OperationStatusResponse> GetPackageBySlotAsync (
    IDeploymentOperations operations, 
    String serviceName, 
    DeploymentSlot deploymentSlot, 
    DeploymentGetPackageParameters parameters
)
ExtensionAttribute 
public static function GetPackageBySlotAsync (
    operations : IDeploymentOperations, 
    serviceName : String, 
    deploymentSlot : DeploymentSlot, 
    parameters : DeploymentGetPackageParameters
) : Task<OperationStatusResponse>

매개 변수

  • serviceName
    The name of the cloud service from which the package should be retrieved.
  • deploymentSlot
    The name of the environment in which the application is deployed.

    Possible values are:

반환 값

An OperationResponse object that includes an HTTP status code and request ID.

설명

The following package files are placed in storage:

  1. Service configuration file - The cloud service configuration file (.cscfg) provides configuration settings for the cloud service and individual roles, including the number of role instances.

  2. Service package - The service package (.cspkg) contains the application code and the service definition file.

For more information about a cloud service package, see Cloud Services.

For more information about using Blob storage, see How to use the Azure Blob Storage Service in .NET

For more information about retrieving the package from a cloud service, see Get Package.

스레드 보안

이 유형의 public static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

플랫폼

개발 플랫폼

Windows Vista, Windows 7 및 Windows Server 2008

대상 플랫폼

참고 항목

참조

DeploymentOperationsExtensions 클래스
DeploymentOperationsExtensions 멤버
Microsoft.WindowsAzure.Management.Compute 네임스페이스