PathUtil::GetCommonPathPrefix Method (String^, String^)

Visual Studio 2015
 

Returns the longest leading string that is common to path1 and path2.Case is not considered in the comparison.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
static String^ GetCommonPathPrefix(
	String^ path1,
	String^ path2
)

Parameters

path1
Type: System::String^

The first path.

path2
Type: System::String^

The second path.

Return Value

Type: System::String^

The longest common prefix, or the empty string if there is no common path.

Return to top
Show: