XCRC.GetXCRC Method

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Get the CRC value of the specified file. This is a non-standard extension of the protocol and may throw a FtpCommandException if the server does not support it.

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

Syntax

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

Parameters

client
Type: System.Net.FtpClient..::..FtpClient
FtpClient object
path
Type: System..::..String
The path of the file you'd like the server to compute the CRC value for.

Return Value

Type: String
The response from the server, typically the CRC value. FtpCommandException thrown on error

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