FtpExtensions.GetFtpPath Method (String, String[])

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Creates a valid FTP path by appending the specified segments to this string

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

Syntax

C#
public static string GetFtpPath(
	this string path,
	params string[] segments
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetFtpPath ( 
	path As String,
	ParamArray segments As String()
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ GetFtpPath(
	String^ path, 
	... array<String^>^ segments
)

Parameters

path
Type: System..::..String
This string
segments
Type: array<System..::..String>[]()[][]
The path segments to append

Return Value

Type: String
A valid FTP path

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