| FileHashIsValid Method (Stream, String) |
Checks if the hash for specified stream has correct value.
Namespace:
Limilabs.FTP.Client.Hash
Assembly:
Ftp (in Ftp.dll) Version: 2.0.22214.1022
Syntax public bool IsValid(
Stream stream,
string expectedHashAsHex
)
Public Function IsValid (
stream As Stream,
expectedHashAsHex As String
) As Boolean
public:
bool IsValid(
Stream^ stream,
String^ expectedHashAsHex
)
member IsValid :
stream : Stream *
expectedHashAsHex : string -> bool
Parameters
- stream
- Type: System.IOStream
The stream to compute hash for. - expectedHashAsHex
- Type: SystemString
Expected hash encoded as hex string (e.g.: 7BEE53C5).
Return Value
Type:
BooleanTrue if hashes match, false otherwise.
See Also