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
)
參數
path1
Type: System.String第一個的路徑。
path2
Type: System.String第二個的路徑。
傳回值
Type: System.String
包含合併的路徑的字串。如果path2開始使用正斜線,正斜線和被調整之前所合併的路徑。