ITriggeredWebJobOperations.UploadFileAsync Method (String, String, Stream, CancellationToken)
Create or replace a triggered WebJob with a script file (.exe, .bat, .php, .js...).
Namespace: Microsoft.WindowsAzure.WebSitesExtensions
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<OperationResponse> UploadFileAsync(
string jobName,
string fileName,
Stream jobContent,
CancellationToken cancellationToken
)
Task<OperationResponse^>^ UploadFileAsync(
String^ jobName,
String^ fileName,
Stream^ jobContent,
CancellationToken cancellationToken
)
abstract UploadFileAsync :
jobName:string *
fileName:string *
jobContent:Stream *
cancellationToken:CancellationToken -> Task<OperationResponse>
Function UploadFileAsync (
jobName As String,
fileName As String,
jobContent As Stream,
cancellationToken As CancellationToken
) As Task(Of OperationResponse)
Parameters
jobName
Type: System.StringThe triggered WebJob name.
fileName
Type: System.StringThe file name.
jobContent
Type: System.IO.StreamThe file content.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<OperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
ITriggeredWebJobOperations Interface
Microsoft.WindowsAzure.WebSitesExtensions Namespace
Return to top