Click or drag to resize
PathCombine Method (String)
Combines an array of strings into a path.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string Combine(
	params string[] paths
)

Parameters

paths
Type: SystemString
An array of parts of the path.

Return Value

Type: String
The combined paths.
Exceptions
ExceptionCondition
ArgumentExceptionOne of the strings in the array contains one or more of the invalid characters defined in GetInvalidPathChars.
ArgumentNullExceptionOne of the strings in the array is null.
See Also