Freigeben über


VersionControlPath.GetCommonParent-Methode

Sofern zwei Serverpfade, geben das weiteste Element von $ zurück, das beide Elemente erzieht.

Wenn einer der beiden Pfade NULL ist, wird der andere zurückgegeben.

Wenn beide Pfade NULL sind, wird ein ArgumentNullException ausgelöst.

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
)

Parameter

Rückgabewert

Typ: System.String
Das weiteste Element von $, das path1 und path2 erzieht.

.NET Framework-Sicherheit

Siehe auch

Referenz

VersionControlPath Klasse

Microsoft.TeamFoundation.VersionControl.Common-Namespace