API to 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

The following table shows the
ResourceURI
class properties and the methods that the class exposes to reference files or resources.
Properties
Data type
Description
URIType
URIType
The path type of the path contained:
  • URI
  • ProjectRelative
  • ApplicationRelative
  • AbsoluteFilePath
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.
Depending on the value of the
URIType
property of an object of the
ResourceURI
type, other properties may or may not expose a value.
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
Have questions or feedback about this documentation? Please submit your feedback here.