Uploads the specified file.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public void Upload(
	FileInfo file,
	string remoteName
)
Visual Basic
Public Sub Upload ( _
	file As FileInfo, _
	remoteName As String _
)
Visual C++
public:
void Upload(
	FileInfo^ file, 
	String^ remoteName
)

Parameters

file
Type: System.IO..::..FileInfo
the file to upload
remoteName
Type: System..::..String
the remote filename

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif an error occurs

See Also