다음을 통해 공유


VersionControlPath.GetCommonParent 메서드

두 서버 경로 지정에서 멀리 항목을 반환 하 항목 모두 parents /.

두 경로 중 하나가 null 인 경우 다른 반환 됩니다.

두 패스를 한 ArgumentNullException이 throw 됩니다.

네임스페이스:  Microsoft.TeamFoundation.VersionControl.Common
어셈블리:  Microsoft.TeamFoundation.VersionControl.Common(Microsoft.TeamFoundation.VersionControl.Common.dll)

구문

‘선언
Public Shared Function GetCommonParent ( _
    path1 As String, _
    path2 As String _
) As String
public static string GetCommonParent(
    string path1,
    string path2
)

매개 변수

  • path1
    형식: System.String
    $로 시작 하는 서버 경로 /.
  • path2
    형식: System.String
    $로 시작 하는 서버 경로 /.

반환 값

형식: System.String
$에서 먼 항목 / 경로 1과 경로 2 parents입니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

VersionControlPath 클래스

Microsoft.TeamFoundation.VersionControl.Common 네임스페이스