Click or drag to resize
PathCombine Method (String, String, String, String)
Combines four strings into a path.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string Combine(
	string path1,
	string path2,
	string path3,
	string path4
)

Parameters

path1
Type: SystemString
The first path to combine.
path2
Type: SystemString
The second path to combine.
path3
Type: SystemString
The third path to combine.
path4
Type: SystemString
The fourth path to combine.

Return Value

Type: String
The combined paths.
Exceptions
ExceptionCondition
ArgumentExceptionpath1, path2, path3, or path4 contains one or more of the invalid characters defined in GetInvalidPathChars.
ArgumentNullExceptionpath1, path2, path3, or path4 is null.
See Also