Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FileTransferClient.GetChecksum Method

Namespace: Rebex.Net
Assembly: Rebex.FileTransfer.dll (version 7.0.9147)

GetChecksum(String, ChecksumAlgorithm)

Returns the checksum of the specified file on the server.

Declaration
public Checksum GetChecksum(string remotePath, ChecksumAlgorithm algorithm)
Parameters
Type Name Description
String remotePath

Path of the remote file.

ChecksumAlgorithm algorithm

Desired checksum algorithm (server must support it).

Returns
Type Description
Checksum

Checksum of the specified remote file.

Implements
IFtp.GetChecksum(String, ChecksumAlgorithm)
Remarks

To calculate checksums of local files, use one of Rebex.IO.LocalItem.CalculateChecksum(Rebex.ChecksumAlgorithm,System.String) methods.

GetChecksum(String, ChecksumAlgorithm, Int64, Int64)

Returns the checksum of the specified file on the server.

Declaration
public Checksum GetChecksum(string remotePath, ChecksumAlgorithm algorithm, long offset, long count)
Parameters
Type Name Description
String remotePath

Path of the remote file.

ChecksumAlgorithm algorithm

Desired checksum algorithm (server must support it).

Int64 offset

The offset in remote file where reading will start.

Int64 count

The maximum number of bytes to read.

Returns
Type Description
Checksum

Checksum of the specified remote file.

Implements
IFtp.GetChecksum(String, ChecksumAlgorithm, Int64, Int64)
Remarks

To calculate checksums of local files, use one of Rebex.IO.LocalItem.CalculateChecksum(Rebex.ChecksumAlgorithm,System.String) methods.

In This Article
  • GetChecksum(String, ChecksumAlgorithm)
  • GetChecksum(String, ChecksumAlgorithm, Int64, Int64)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies