Share via


ContinuousWebJobOperationsExtensions.UploadZipAsync Method

Create or replace a continuous WebJob with a zip file (containing the WebJob binaries).

Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Usage

'Usage
Dim operations As IContinuousWebJobOperations
Dim jobName As String
Dim fileName As String
Dim jobContent As Stream
Dim returnValue As Task(Of OperationResponse)

returnValue = ContinuousWebJobOperationsExtensions.UploadZipAsync(operations, jobName, fileName, jobContent)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UploadZipAsync ( _
    operations As IContinuousWebJobOperations, _
    jobName As String, _
    fileName As String, _
    jobContent As Stream _
) As Task(Of OperationResponse)
[ExtensionAttribute] 
public static Task<OperationResponse> UploadZipAsync (
    IContinuousWebJobOperations operations,
    string jobName,
    string fileName,
    Stream jobContent
)
[ExtensionAttribute] 
public:
static Task<OperationResponse^>^ UploadZipAsync (
    IContinuousWebJobOperations^ operations, 
    String^ jobName, 
    String^ fileName, 
    Stream^ jobContent
)
/** @attribute ExtensionAttribute() */ 
public static Task<OperationResponse> UploadZipAsync (
    IContinuousWebJobOperations operations, 
    String jobName, 
    String fileName, 
    Stream jobContent
)
ExtensionAttribute 
public static function UploadZipAsync (
    operations : IContinuousWebJobOperations, 
    jobName : String, 
    fileName : String, 
    jobContent : Stream
) : Task<OperationResponse>

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.WebSitesExtensions.IContinuousWebJobOperations.
  • jobName
    Required. The continuous WebJob name.
  • fileName
    Required. The zip file name.
  • jobContent
    Required. The zip file content.

Return Value

A standard service response including an HTTP status code and request ID.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ContinuousWebJobOperationsExtensions Class
ContinuousWebJobOperationsExtensions Members
Microsoft.WindowsAzure Namespace