Appearance
GetAppRelativePath Method
Definition
- Namespace:
JASE.IO - Assembly:
JASE.dll
string GetAppRelativePath(string input, bool trimLeading = null)
csharp
string GetAppRelativePath(string input, bool trimLeading = null)Returns a file path relative to the application root.
Parameters
| Name | Description |
|---|---|
input | The absolute or application-rooted path to convert. |
trimLeading | If , leading directory separators are removed from the resulting relative path. |
Returns
A path relative to ApplicationPath, using forward slashes as directory separators, or if input is or empty.