共用方式為


BuildCommonUtil.GetCommonLocalPath Method

Determines the longest common root path between all provided items.

Namespace:  Microsoft.TeamFoundation.Build.Common
Assembly:  Microsoft.TeamFoundation.Build.Common (in Microsoft.TeamFoundation.Build.Common.dll)

Syntax

'Declaration
Public Shared Function GetCommonLocalPath ( _
    localItems As IEnumerable(Of String) _
) As String
public static string GetCommonLocalPath(
    IEnumerable<string> localItems
)
public:
static String^ GetCommonLocalPath(
    IEnumerable<String^>^ localItems
)
static member GetCommonLocalPath : 
        localItems:IEnumerable<string> -> string
public static function GetCommonLocalPath(
    localItems : IEnumerable<String>
) : String

Parameters

Return Value

Type: System.String
The most common path or the empty string

.NET Framework Security

See Also

Reference

BuildCommonUtil Class

Microsoft.TeamFoundation.Build.Common Namespace