 | PathUtilsMakeRelativePath Method |
Creates a relative path from one file or folder to another.
Namespace: Slash.SystemExt.UtilsAssembly: Slash.System (in Slash.System.dll) Version: 1.0.5843.24176
Syntaxpublic static string MakeRelativePath(
string fromPath,
string toPath
)
Public Shared Function MakeRelativePath (
fromPath As String,
toPath As String
) As String
public:
static String^ MakeRelativePath(
String^ fromPath,
String^ toPath
)
static member MakeRelativePath :
fromPath : string *
toPath : string -> string
Parameters
- fromPath
- Type: SystemString
Contains the directory that defines the start of the relative path. - toPath
- Type: SystemString
Contains the path that defines the endpoint of the relative path.
Return Value
Type:
StringThe relative path from the start directory to the end path.
Exceptions
See Also