Combines two path strings.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static string Combine(
string path1,
string path2
)
Parameters
- path1 String
- First path.
- path2 String
- Second path.
Return Value
StringA 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| Exception | Condition |
|---|
| ArgumentException | Path1 or path2 contain one or more of the invalid characters defined in Crestron.SimplSharp.CrestronIO.Path.GetInvalidPathChars(). |
| ArgumentNullException | Path1 or path2 is null. |
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also