Info. Relative Path(String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the path of the matching file truncated relative to the
For example, if the matching path was c:\foo\bar\baz.c and the directory argument was c:\foo
the routine would return bar\baz.c
public: System::String ^ RelativePath(System::String ^ directory);
public: Platform::String ^ RelativePath(Platform::String ^ directory);
std::wstring RelativePath(std::wstring const & directory);
public string RelativePath (string directory);
member this.RelativePath : string -> string
Public Function RelativePath (directory As String) As String
The directory base the truncation on.
The relative path that was produced.