Back to product page

RemoteCRC method


Requests integrity check of remote file.

Type

Void

Syntax

  • C#
  • VB.NET
public Void RemoteCRC(IntegrityCheckTypes Type);
The RemoteCRC(Type) syntax has these parts:
TypeDetermines type of integrity check algorithm used.

public Void RemoteCRC(IntegrityCheckTypes Type, String RemotePath);
The RemoteCRC(Type,RemotePath) syntax has these parts:
TypeDetermines type of integrity check algorithm used.
RemotePathFull path to a file on remote system.

public Void RemoteCRC(IntegrityCheckTypes Type, String RemotePath, Int32 FileStart, Int32 FileLength);
The RemoteCRC(Type,RemotePath,FileStart,FileLength) syntax has these parts:
TypeDetermines type of integrity check algorithm used.
RemotePathFull path to a file on remote system.
FileStartInteger value that represents starting position in the file for calculating CRC.
FileLengthInteger value that represents length of data in the file where CRC is calculated.

public Sub RemoteCRC(ByVal Type As IntegrityCheckTypes)
The RemoteCRC(Type) syntax has these parts:
TypeDetermines type of integrity check algorithm used.

public Sub RemoteCRC(ByVal Type As IntegrityCheckTypes, ByVal RemotePath As String)
The RemoteCRC(Type,RemotePath) syntax has these parts:
TypeDetermines type of integrity check algorithm used.
RemotePathFull path to a file on remote system.

public Sub RemoteCRC(ByVal Type As IntegrityCheckTypes, ByVal RemotePath As String, ByVal FileStart As Int32, ByVal FileLength As Int32)
The RemoteCRC(Type,RemotePath,FileStart,FileLength) syntax has these parts:
TypeDetermines type of integrity check algorithm used.
RemotePathFull path to a file on remote system.
FileStartInteger value that represents starting position in the file for calculating CRC.
FileLengthInteger value that represents length of data in the file where CRC is calculated.

Remarks

RemoteCRC method will try to execute command on the server to calculate CRC value of remote file, if server supports such command. For CRC type it will send XCRC command (along with filename, and with start/length if you provided these values). For MD5 type it will send XMD5 command, and for SHA1 type it will send XSHA1 command. If server supports this commands, wodFtpDLX.NET will return appropriate checksum value through ListItems event.

Please note that not all servers supports integrity check commands.

NOTE: this method is not supported in SFTP protocol.

Platforms

Windows