Share via


FileOperationsExtensions.GetFromComputeNodeAsync Method

Definition

Returns the content of the specified Compute Node file.

public static System.Threading.Tasks.Task<System.IO.Stream> GetFromComputeNodeAsync (this Microsoft.Azure.Batch.Protocol.IFileOperations operations, string poolId, string nodeId, string filePath, Microsoft.Azure.Batch.Protocol.Models.FileGetFromComputeNodeOptions fileGetFromComputeNodeOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetFromComputeNodeAsync : Microsoft.Azure.Batch.Protocol.IFileOperations * string * string * string * Microsoft.Azure.Batch.Protocol.Models.FileGetFromComputeNodeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
<Extension()>
Public Function GetFromComputeNodeAsync (operations As IFileOperations, poolId As String, nodeId As String, filePath As String, Optional fileGetFromComputeNodeOptions As FileGetFromComputeNodeOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Parameters

operations
IFileOperations

The operations group for this extension method.

poolId
String

The ID of the Pool that contains the Compute Node.

nodeId
String

The ID of the Compute Node that contains the file.

filePath
String

The path to the Compute Node file that you want to get the content of.

fileGetFromComputeNodeOptions
FileGetFromComputeNodeOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to