SPSolutionExporter.PathCombine Method
Combines two paths even if the second path begins with a slash.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function PathCombine ( _
path1 As String, _
path2 As String _
) As String
'Usage
Dim path1 As String
Dim path2 As String
Dim returnValue As String
returnValue = SPSolutionExporter.PathCombine(path1, _
path2)
public static string PathCombine(
string path1,
string path2
)
Parameters
path1
Type: System.StringThe first path.
path2
Type: System.StringThe second path.
Return Value
Type: System.String
A string containing the combined paths. If path2 starts with a slash, the slash is trimmed before the paths are combined.