Manage file and resource paths
The
ResourceURI
static C# class represents the path (URI) of a file or resource inside or outside the project.
TIP:
The
ResourceURI
class represents the same type of data for the variables. For example, the Path
property of an Image
object.ResourceURI object properties
ResourceURI
object propertiesProperties | Data type | Description |
---|---|---|
URIType | URIType | The path type of the path contained:
|
ProjectRelativePath | string | The relative path of a file in relation to the ProjectFiles folder. |
ApplicationRelativePath | string | The relative path of a file in relation to the ApplicationFiles folder. |
AbsoluteFilePath | string | The absolute path of a file external to the project. |
URI | string | The absolute path of a generic resource. |
URIType | ProjectRelativePath | ApplicationRelativePath | AbsoluteFilePath | URI |
---|---|---|---|---|
URI | - | - | - | URI (for example, a URL HTTP) |
ProjectRelative | Relative path to the ProjectFiles folder | - | - | Absolute path |
ApplicationRelative | - | Relative path in relation to the ApplicationFiles folder | - | Absolute path |
AbsoluteFilePath | - | - | Absolute path | Absolute path |
Provide Feedback