Condividi tramite


Metodo TriggeredWebJobOperationsExtensions.UploadFileAsync

Create or replace a triggered WebJob with a script file (.exe, .bat, .php, .js...).

Spazio dei nomi: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Utilizzo

'Utilizzo
Dim operations As ITriggeredWebJobOperations
Dim jobName As String
Dim fileName As String
Dim jobContent As Stream
Dim returnValue As Task(Of OperationResponse)

returnValue = TriggeredWebJobOperationsExtensions.UploadFileAsync(operations, jobName, fileName, jobContent)

Sintassi

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

Parametri

  • operations
    Reference to the Microsoft.WindowsAzure.WebSitesExtensions.ITriggeredWebJobOperations.
  • jobName
    Required. The triggered WebJob name.
  • fileName
    Required. The file name.
  • jobContent
    Required. The file content.

Valore restituito

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

Sicurezza dei thread

Qualsiasi membro statico pubblico (condiviso in Visual Basic) di questo tipo è thread safe. Non è invece garantita la sicurezza dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows 7 e Windows Server 2008

Piattaforme di destinazione

Vedere anche

Riferimento

Classe TriggeredWebJobOperationsExtensions
Membri TriggeredWebJobOperationsExtensions
Spazio dei nomi Microsoft.WindowsAzure