Calculates the checksum for the specified file.
Namespace:
Rebex.IO
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Shared Function GetChecksum ( _ path As String, _ algorithm As ChecksumAlgorithm _ ) As Checksum |
C# |
---|
public static Checksum GetChecksum( string path, ChecksumAlgorithm algorithm ) |
Parameters
- path
- Type: System..::..String
Path to the file.
- algorithm
- Type: Rebex.IO..::..ChecksumAlgorithm
Desired checksum algorithm.