共用方式為


SPSolutionExporter.PathCombine method

合併兩個路徑,即使第二個路徑開頭為正斜線。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function PathCombine ( _
    path1 As String, _
    path2 As String _
) As String
'用途
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
)

參數

傳回值

Type: System.String
包含合併的路徑的字串。如果path2開始使用正斜線,正斜線和被調整之前所合併的路徑。

請參閱

參照

SPSolutionExporter class

SPSolutionExporter members

Microsoft.SharePoint namespace