Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Given two server paths, return the farthest item from $/ that parents both items.
If one of the two paths is null, the other will be returned.
If both paths are null, an ArgumentNullException is thrown.
Namespace: Microsoft.TeamFoundation.VersionControl.Common
Assembly: Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)
Syntax
'Declaration
Public Shared Function GetCommonParent ( _
path1 As String, _
path2 As String _
) As String
public static string GetCommonParent(
string path1,
string path2
)
public:
static String^ GetCommonParent(
String^ path1,
String^ path2
)
static member GetCommonParent :
path1:string *
path2:string -> string
public static function GetCommonParent(
path1 : String,
path2 : String
) : String
Parameters
path1
Type: System.StringA server path starting with $/
path2
Type: System.StringA server path starting with $/
Return Value
Type: System.String
The farthest item from $/ that parents both path1 and path2.
.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.