Path.Combine Method

Definition

Overloads

Combine(String[])
Combine(String, String)
Combine(String, String, String)
Combine(String, String, String, String)

Combine(String[])

public:
 static System::String ^ Combine(... cli::array <System::String ^> ^ paths);
public static string Combine (params string[] paths);
static member Combine : string[] -> string
Public Shared Function Combine (ParamArray paths As String()) As String

Parameters

paths
String[]

Returns

Applies to

Combine(String, String)

public:
 static System::String ^ Combine(System::String ^ path1, System::String ^ path2);
public static string Combine (string path1, string path2);
static member Combine : string * string -> string
Public Shared Function Combine (path1 As String, path2 As String) As String

Parameters

path1
String
path2
String

Returns

Applies to

Combine(String, String, String)

public:
 static System::String ^ Combine(System::String ^ path1, System::String ^ path2, System::String ^ path3);
public static string Combine (string path1, string path2, string path3);
static member Combine : string * string * string -> string
Public Shared Function Combine (path1 As String, path2 As String, path3 As String) As String

Parameters

path1
String
path2
String
path3
String

Returns

Applies to

Combine(String, String, String, String)

public:
 static System::String ^ Combine(System::String ^ path1, System::String ^ path2, System::String ^ path3, System::String ^ path4);
public static string Combine (string path1, string path2, string path3, string path4);
static member Combine : string * string * string * string -> string
Public Shared Function Combine (path1 As String, path2 As String, path3 As String, path4 As String) As String

Parameters

path1
String
path2
String
path3
String
path4
String

Returns

Applies to