Compartir a través de


PoolOperations.CopyNodeFileContentToStream Método

Definición

Copia el contenido de un archivo del nodo especificado en el especificado Stream.

public void CopyNodeFileContentToStream (string poolId, string computeNodeId, string filePath, System.IO.Stream stream, Microsoft.Azure.Batch.GetFileRequestByteRange byteRange = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CopyNodeFileContentToStream : string * string * string * System.IO.Stream * Microsoft.Azure.Batch.GetFileRequestByteRange * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub CopyNodeFileContentToStream (poolId As String, computeNodeId As String, filePath As String, stream As Stream, Optional byteRange As GetFileRequestByteRange = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parámetros

poolId
String

Identificador del grupo que contiene el nodo de proceso.

computeNodeId
String

Identificador del nodo de proceso.

filePath
String

Ruta de acceso del archivo que se va a recuperar.

stream
Stream

Secuencia en la que se va a copiar el contenido del archivo.

byteRange
GetFileRequestByteRange

Intervalo de bytes que define qué sección del archivo se va a copiar. Si se omite, se descarga todo el archivo.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Colección de BatchClientBehavior instancias que se aplican a la solicitud de servicio de Batch después de CustomBehaviors.

Comentarios

Se trata de una operación de bloqueo. Para obtener un equivalente sin bloqueo, vea CopyNodeFileContentToStreamAsync(String, String, String, Stream, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>, CancellationToken).

Se aplica a