FtpExtensions.GetFtpFileName Method

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Gets the file name from the path

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

Syntax

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

Parameters

path
Type: System..::..String
The full path to the file

Return Value

Type: String
The file name

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. 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