NDoc 1.3.1 SDK |

# Workspace.GetRelativePath Method

Return the relative path between two directories

    [Visual Basic]
    Shared Public Function GetRelativePath( _
       ByVal ancestor As DirectoryInfo, _
       ByVal child As DirectoryInfo _
    ) As String
    [C#]
    public static string GetRelativePath(
       DirectoryInfo ancestor,
       DirectoryInfo child
    );
    [C++]
    public: static String* GetRelativePath(
       DirectoryInfo* ancestor,
       DirectoryInfo* child
    );
    [JScript]
    public static function GetRelativePath(
       DirectoryInfo ancestor,
       DirectoryInfo child
    ): String;

#### Parameters

ancestor
  The folder closest to the drive root
child
  A folder that is a child of ancestor

#### Return Value

#### See Also

Workspace Class | NDoc.Core Namespace