Returns the checksum of the specified file on the server.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Function GetRemoteChecksum ( _
	type As FtpChecksumType, _
	remotePath As String, _
	offset As Integer, _
	count As Long _
) As String
C#
public string GetRemoteChecksum(
	FtpChecksumType type,
	string remotePath,
	int offset,
	long count
)

Parameters

type
Type: Rebex.Net..::..FtpChecksumType
Desired checksum type (server must support it - see GetSupportedChecksumTypes()()()() for details).
remotePath
Type: System..::..String
Path of the remote file.
offset
Type: System..::..Int32
The offset in remote file where reading will start.
count
Type: System..::..Int64
The maximum number of bytes to read.

Return Value

Checksum of the specified remote file.

Remarks

Please note that not all FTP server that support checksums will necessarily support this variant as well.

To calculate checksums of local files, use one of CalculateLocalChecksum(FtpChecksumType, String, Int32, Int64) methods.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also