MD5.GetMD5 Method

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Gets the MD5 hash of the specified file using MD5. This is a non-standard extension to the protocol and may or may not work. A FtpCommandException will be thrown if the command fails.

Namespace: System.Net.FtpClient.Extensions
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public static string GetMD5(
	this FtpClient client,
	string path
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetMD5 ( 
	client As FtpClient,
	path As String
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ GetMD5(
	FtpClient^ client, 
	String^ path
)

Parameters

client
Type: System.Net.FtpClient..::..FtpClient
FtpClient Object
path
Type: System..::..String
Full or relative path to remote file

Return Value

Type: String
Server response, presumably the MD5 hash.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FtpClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also