Click or drag to resize

FileHashIsValid Method (String, Int32, Byte)

Checks if the hash for specified file has correct value.

Namespace:  Limilabs.FTP.Client.Hash
Assembly:  Ftp (in Ftp.dll) Version: 2.0.22214.1022
Syntax
public bool IsValid(
	string path,
	int length,
	byte[] expectedHash
)

Parameters

path
Type: SystemString
The file to compute hash for.
length
Type: SystemInt32
Number of bytes to compute hash for.
expectedHash
Type: SystemByte
Expected hash.

Return Value

Type: Boolean
True if hashes match, false otherwise.
See Also