NET FTP Library
DownloadChunkAsync Method






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : DownloadChunkAsync Method
The local stream to download the chunk
The remote FTP File Name
The position in the file
The size to transfer
Your custom object to be returned with Started, Progress, and Completed Events
Download the chunk of a file into a local stream
Syntax
'Declaration
 
Public Sub DownloadChunkAsync( _
   ByVal localStream As System.IO.Stream, _
   ByVal ftpFileName As System.String, _
   ByVal offset As System.Long, _
   ByVal chunkSize As System.Integer, _
   ByVal customObject As System.Object _
) 
'Usage
 
Dim instance As FTP
Dim localStream As System.IO.Stream
Dim ftpFileName As System.String
Dim offset As System.Long
Dim chunkSize As System.Integer
Dim customObject As System.Object
 
instance.DownloadChunkAsync(localStream, ftpFileName, offset, chunkSize, customObject)
public void DownloadChunkAsync( 
   System.IO.Stream localStream,
   System.string ftpFileName,
   System.long offset,
   System.int chunkSize,
   System.object customObject
)
public procedure DownloadChunkAsync( 
    localStream: System.IO.Stream;
    ftpFileName: System.String;
    offset: System.Int64;
    chunkSize: System.Integer;
    customObject: System.TObject
); 
public function DownloadChunkAsync( 
   localStream : System.IO.Stream,
   ftpFileName : System.String,
   offset : System.long,
   chunkSize : System.int,
   customObject : System.Object
);
public: void DownloadChunkAsync( 
   System.IO.Stream* localStream,
   System.string* ftpFileName,
   System.long offset,
   System.int chunkSize,
   System.Object* customObject
) 
public:
void DownloadChunkAsync( 
   System.IO.Stream^ localStream,
   System.String^ ftpFileName,
   System.int64 offset,
   System.int chunkSize,
   System.Object^ customObject
) 

Parameters

localStream
The local stream to download the chunk
ftpFileName
The remote FTP File Name
offset
The position in the file
chunkSize
The size to transfer
customObject
Your custom object to be returned with Started, Progress, and Completed Events
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members