FileTransferClient.GetChecksum Method
Namespace: Rebex.Net
Assembly: Rebex.FileTransfer.dll (version 7.0.9448)
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
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
Remarks
To calculate checksums of local files, use one of Rebex.IO.LocalItem.CalculateChecksum(Rebex.ChecksumAlgorithm,System.String) methods.