PathCombine Method (String, String) |
Combines two strings into a path.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static string Combine(
string path1,
string path2
)
Parameters
- path1
- Type: SystemString
The first path to combine. - path2
- Type: SystemString
The second path to combine.
Return Value
Type:
StringThe combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If
path2 contains an absolute path, this method returns
path2.
Exceptions See Also