NDoc 1.3.1 SDK

PathUtilities.AbsoluteToRelativePath Method 

Converts an absolute path to one relative to the given base directory path

[Visual Basic]
Shared Public Function AbsoluteToRelativePath( _ 
   ByVal basePath As String, _ 
   ByVal absolutePath As String _ 
) As String
[C#]
public static string AbsoluteToRelativePath(
   string basePath,
   string absolutePath
);
[C++]
public: static String* AbsoluteToRelativePath(
   String* basePath,
   String* absolutePath
);
[JScript]
public static function AbsoluteToRelativePath(
   String basePath,
   String absolutePath
): String;

Parameters

basePath
The base directory path
absolutePath
An absolute path

Return Value

A path to the given absolute path, relative to the base path

See Also

PathUtilities Class | NDoc.Core Namespace