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

location
A string of up to 1024 bytes in length
filename
The name of the file to write to

Glossary Item Box

Called to send a specific length of bytes to a 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 Download( _
   ByVal location As String, _
   ByVal filename As String _
) As Boolean
C# 
public bool Download( 
   string location,
   string filename
)

Parameters

location
A string of up to 1024 bytes in length
filename
The name of the file to write to

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