Share via


BuildCommonUtil.GetCommonServerPath 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 GetCommonServerPath ( _
    serverItems As IEnumerable(Of String) _
) As String
public static string GetCommonServerPath(
    IEnumerable<string> serverItems
)
public:
static String^ GetCommonServerPath(
    IEnumerable<String^>^ serverItems
)
static member GetCommonServerPath : 
        serverItems:IEnumerable<string> -> string
public static function GetCommonServerPath(
    serverItems : 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