ResourceURI.FromAbsolutePath(path)

Returns a C# object of the
ResourceURI
type, with the
URIType
of
AbsoluteFilePath
that contains an absolute path to a file.
static ResourceUri FromAbsoluteFilePath(string
path
);

Arguments

path
(string)
An absolute path to a file.

Returns

ResourceURI
A C# object that contains the path indicated in the argument.

Example

The following example shows an API that returns a C#
applicationRelativeResourceURI
object of the
ResourceURI
type that contains the relative path
C:\Users\Username\Desktop\Text1.txt
.
var applicationRelativeResourceUri = ResourceUri.FromAbsolutePath("C:\Users\Username\Desktop\Text1.txt");
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.