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
serverItems
Type: System.Collections.Generic.IEnumerable<String>The server paths
Return Value
Type: System.String
The most common path or the empty string
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.