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.

Return Value

Checksum of the specified file.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also