FtpListItem.Parse Method

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Parses a line from a file listing using the first successful match in the Parsers collection.

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

Syntax

C#
public static FtpListItem Parse(
	string path,
	string buf,
	FtpCapability capabilities
)
Visual Basic
Public Shared Function Parse ( 
	path As String,
	buf As String,
	capabilities As FtpCapability
) As FtpListItem
Visual C++
public:
static FtpListItem^ Parse(
	String^ path, 
	String^ buf, 
	FtpCapability capabilities
)

Parameters

path
Type: System..::..String
The source path of the file listing
buf
Type: System..::..String
A line from the file listing
capabilities
Type: System.Net.FtpClient..::..FtpCapability
Server capabilities

Return Value

Type: FtpListItem
A FtpListItem object representing the parsed line, null if the line was unable to be parsed. If you have encountered an unsupported list type add a parser to the public static Parsers collection of FtpListItem.

See Also