Share via


MatchInfo.RelativePath(String) Method

Definition

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 .

Applies to