Calculates the checksum for the specified local file.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Shared Function CalculateLocalChecksum ( _
	type As FtpChecksumType, _
	localPath As String, _
	localOffset As Integer, _
	length As Long _
) As String
C#
public static string CalculateLocalChecksum(
	FtpChecksumType type,
	string localPath,
	int localOffset,
	long length
)

Parameters

type
Type: Rebex.Net..::..FtpChecksumType
Desired checksum type.
localPath
Type: System..::..String
Path of the local file.
localOffset
Type: System..::..Int32
The offset in the local file where reading will start.
length
Type: System..::..Int64
The maximum number of bytes to read.

Return Value

Checksum of the specified local file.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also