PackageUtilities::MakeRelative Method (String^, String^)

 

Returns a path for the second file that's relative to the path of the first.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static String^ MakeRelative(
	String^ filename,
	String^ filename2
)

Parameters

filename
Type: System::String^

The base path.

filename2
Type: System::String^

The relative path.

Return Value

Type: System::String^

The relative path of the second file.

If the filename and filename2 overlap (have the same root), returns a relative path of the form "..\". If the two paths are completely distinct, returns filename2.

Return to top
Show: