TriggeredWebJobOperationsExtensions.UploadFile 方法 (ITriggeredWebJobOperations, String, String, Stream)
创建或触发的 WebJob 替换为.exe、.bat、.php (.js...) 的脚本文件。
命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Management.WebSites(Microsoft.WindowsAzure.Management.WebSites.dll 中)
语法
public static OperationResponse UploadFile(
this ITriggeredWebJobOperations operations,
string jobName,
string fileName,
Stream jobContent
)
public:
[ExtensionAttribute]
static OperationResponse^ UploadFile(
ITriggeredWebJobOperations^ operations,
String^ jobName,
String^ fileName,
Stream^ jobContent
)
static member UploadFile :
operations:ITriggeredWebJobOperations *
jobName:string *
fileName:string *
jobContent:Stream -> OperationResponse
<ExtensionAttribute>
Public Shared Function UploadFile (
operations As ITriggeredWebJobOperations,
jobName As String,
fileName As String,
jobContent As Stream
) As OperationResponse
参数
operations
Type: Microsoft.WindowsAzure.WebSitesExtensions.ITriggeredWebJobOperations对 Microsoft.WindowsAzure.WebSitesExtensions.ITriggeredWebJobOperations 引用。
jobName
Type: System.String必需。 触发的 WebJob 名称。
fileName
Type: System.String必需。 文件名。
jobContent
Type: System.IO.Stream必需。 文件内容中。
返回值
Type: Microsoft.WindowsAzure.OperationResponse
标准服务响应,包括 HTTP 状态代码和请求 ID。
请参阅
TriggeredWebJobOperationsExtensions 类
Microsoft.WindowsAzure 命名空间
返回页首