IFtp.GetChecksum Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
GetChecksum(String, ChecksumAlgorithm)
Returns the checksum of the specified file on the server.
Declaration
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. |
Remarks
To calculate checksums of local files, use one of GetChecksum(String, ChecksumAlgorithm) methods.
GetChecksum(String, ChecksumAlgorithm, Int64, Int64)
Returns the checksum of the specified file on the server.
Declaration
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. |
Remarks
To calculate checksums of local files, use one of GetChecksum(String, ChecksumAlgorithm) methods.