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
- path1
Typ: System.String
Ein Serverpfad, der mit beginnt $
- path2
Typ: System.String
Ein Serverpfad, der mit beginnt $
Rückgabewert
Typ: System.String
Das weiteste Element von $, das path1 und path2 erzieht.
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.