StorageFile.Path StorageFile.Path StorageFile.Path StorageFile.Path StorageFile.Path Property

Definition

Gets the full file-system path of the current file, if the file has a path.

public : Platform::String Path { get; }
winrt::hstring Path();
public string Path { get; }
Public ReadOnly Property Path As string
var string = storageFile.path;

Property Value

string string string

The full path of the file, if the file has a path in the user's file-system.

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.