Click or drag to resize
PathCombine Method (String, String, String)
Combines three 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
)

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.

Return Value

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