Click or drag to resize

PathCombine Method

Combines two path strings.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static string Combine(
	string path1,
	string path2
)

Parameters

path1  String
First path.
path2  String
Second path.

Return Value

String
A string containing the 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
ExceptionCondition
ArgumentExceptionPath1 or path2 contain one or more of the invalid characters defined in Crestron.SimplSharp.CrestronIO.Path.GetInvalidPathChars().
ArgumentNullExceptionPath1 or path2 is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also