MatchInfo.RelativePath(String) Method

Definition

Returns the path of the matching file truncated relative to the directory parameter. 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

Parameters

directory
String

The directory base the truncation on.

Returns

String

The relative path that was produced.

Applies to