Delen via


StorageFile.Path Property

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to