Gets specified remote file and saves it to a local file. Then it can verify the size of the file on the remote server is the same as locally.

Namespace:  HS.Sys.TheEnterprise.Common.Laserbear
Assembly:  Laserbear (in Laserbear.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public bool GetFileAs(
	string remoteFile,
	string localFile,
	bool verifySize
)
Visual Basic (Declaration)
Public Function GetFileAs ( _
	remoteFile As String, _
	localFile As String, _
	verifySize As Boolean _
) As Boolean
Visual C++
public:
bool GetFileAs(
	String^ remoteFile, 
	String^ localFile, 
	bool verifySize
)

Parameters

remoteFile
Type: System..::.String
Name of the remote file
localFile
Type: System..::.String
Name of the local file to create
verifySize
Type: System..::.Boolean
When set to true: Verifies the file size on remote server equals the local file size. Will fail download if the file sizes do not match.

Return Value

True if file transfer is successful

See Also