CSharpTest.Net
Upload(String,String) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Crypto Namespace > SecureTransfer.Client Class > Upload Method : Upload(String,String) Method

location
A string of up to 1024 bytes in length
filePath
The file path of the file to transfer

Glossary Item Box

Called to send a single file to the remove server identified by serverKey. The transfer is a blocking call and returns on success or raises an exception. If Abort() is called durring the transfer, or if a ProgressChanged event handler raises the OperationCanceledException, the transfer is silently terminated and the method will return false.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Upload( _
   ByVal location As String, _
   ByVal filePath As String _
) As Boolean
C# 
public bool Upload( 
   string location,
   string filePath
)

Parameters

location
A string of up to 1024 bytes in length
filePath
The file path of the file to transfer

Return Value

True if the file was successfully received by the server

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys