An NDoc Documented Class Library

FTPClient.Put Method (Stream, String, Boolean)

Put a stream of data onto the FTP server in the current directory. Allows appending if current file exists

public virtual long Put(
   Stream srcStream,
   string remoteFile,
   bool append
);

Parameters

srcStream
Input stream of data to put.
remoteFile
Name of remote file in current directory.
append
true if appending, false otherwise.

Return Value

Number of bytes transferred.

Implements

IFileTransferClient.Put

Remarks

The stream is closed after the transfer is complete if CloseStreamsAfterTransfer is true (the default) and are left open otherwise.

See Also

FTPClient Class | EnterpriseDT.Net.Ftp Namespace | FTPClient.Put Overload List