 | FileHashIsValid(String, Int32, Byte) Method |
Checks if the hash for specified file has correct value.
Namespace: Limilabs.FTP.Client.HashAssembly: Ftp (in Ftp.dll) Version: 2.0.26109.1248
Syntaxpublic bool IsValid(
string path,
int length,
byte[] expectedHash
)
Public Function IsValid (
path As String,
length As Integer,
expectedHash As Byte()
) As Boolean
public:
bool IsValid(
String^ path,
int length,
array<unsigned char>^ expectedHash
)
member IsValid :
path : string *
length : int *
expectedHash : byte[] -> bool Parameters
- path String
- The file to compute hash for.
- length Int32
- Number of bytes to compute hash for.
- expectedHash Byte
- Expected hash.
Return Value
BooleanTrue if hashes match, false otherwise.
See Also