StorageFile.Path Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the full file-system path of the current file, if the file has a path.
public:
property Platform::String ^ Path { Platform::String ^ get(); };
winrt::hstring Path();
public string Path { get; }
var string = storageFile.path;
Public ReadOnly Property Path As String
Property Value
The full path of the file, if the file has a path in the user's file-system.
Implements
Remarks
Do not rely on this property to access a file because some files may not have file-system paths. For example if the file is backed by a URI, or was picked using the file picker, the file is not guaranteed to have a file-system path.