TriggeredWebJobOperationsExtensions.UploadFileAsync Method (ITriggeredWebJobOperations, String, String, Stream)
Create or replace a triggered WebJob with a script file (.exe, .bat, .php, .js...).
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
public static Task<OperationResponse> UploadFileAsync( this ITriggeredWebJobOperations operations, string jobName, string fileName, Stream jobContent )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.WebSitesExtensions.ITriggeredWebJobOperations
Reference to the Microsoft.WindowsAzure.WebSitesExtensions.ITriggeredWebJobOperations.
- jobName
-
Type:
System.String
Required. The triggered WebJob name.
- fileName
-
Type:
System.String
Required. The file name.
- jobContent
-
Type:
System.IO.Stream
Required. The file content.
Return Value
Type: System.Threading.Tasks.Task<OperationResponse>A standard service response including an HTTP status code and request ID.
Show: