NodeFileOperationsExtensions.GetFromTaskAsync Method (INodeFileOperations, String, String, String, Stream, NodeFileGetParameters)
Gets the content of the specified task file.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public static Task<NodeFileGetResponse> GetFromTaskAsync(
this INodeFileOperations operations,
string jobId,
string taskId,
string fileName,
Stream destinationStream,
NodeFileGetParameters parameters
)
public:
[ExtensionAttribute]
static Task<NodeFileGetResponse^>^ GetFromTaskAsync(
INodeFileOperations^ operations,
String^ jobId,
String^ taskId,
String^ fileName,
Stream^ destinationStream,
NodeFileGetParameters^ parameters
)
static member GetFromTaskAsync :
operations:INodeFileOperations *
jobId:string *
taskId:string *
fileName:string *
destinationStream:Stream *
parameters:NodeFileGetParameters -> Task<NodeFileGetResponse>
<ExtensionAttribute>
Public Shared Function GetFromTaskAsync (
operations As INodeFileOperations,
jobId As String,
taskId As String,
fileName As String,
destinationStream As Stream,
parameters As NodeFileGetParameters
) As Task(Of NodeFileGetResponse)
Parameters
operations
Type: Microsoft.Azure.Batch.Protocol.INodeFileOperationsReference to the Microsoft.Azure.Batch.Protocol.INodeFileOperations.
jobId
Type: System.StringRequired. The id of the job that contains the task.
taskId
Type: System.StringRequired. The id of the task whose file you want to retrieve.
fileName
Type: System.StringRequired. The path to the task file that you want to get the content of.
destinationStream
Type: System.IO.StreamRequired. A Stream to which to write the file content.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.NodeFileGetParametersRequired. The parameters for the request.
Return Value
Type: System.Threading.Tasks.Task<NodeFileGetResponse>
Response to a NodeFileOperations.GetFromComputeNode or NodeFileOperations.GetFromTask request.
See Also
NodeFileOperationsExtensions Class
Microsoft.Azure.Batch.Protocol Namespace
Return to top