FTPClientPut Method (Stream, String, Boolean) |
Put a stream of data onto the FTP server in the current directory. Allows appending
if current file exists
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic virtual long Put(
Stream srcStream,
string remoteFile,
bool append
)
Public Overridable Function Put (
srcStream As Stream,
remoteFile As String,
append As Boolean
) As Long
public:
virtual long long Put(
Stream^ srcStream,
String^ remoteFile,
bool append
)
abstract Put :
srcStream : Stream *
remoteFile : string *
append : bool -> int64
override Put :
srcStream : Stream *
remoteFile : string *
append : bool -> int64
Parameters
- srcStream
- Type: System.IOStream
Input stream of data to put. - remoteFile
- Type: SystemString
Name of remote file in current directory. - append
- Type: SystemBoolean
true if appending, false otherwise.
Return Value
Type:
Int64Number of bytes transferred.
Implements
IFileTransferClientPut(Stream, String, Boolean)
Remarks
The stream is closed after the transfer is complete if
CloseStreamsAfterTransfer is
true (the default) and are left
open otherwise.
See Also