MatchInfo.RelativePath(String) Method
Definition
Important
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 directory
parameter.
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
Parameters
- directory
- String
The directory base the truncation on.
Returns
The relative path that was produced.
Remarks
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 .