Storage Items
Common members for StorageFile and StorageFolder
Name
Gets a short name of the item including the file name extension if there is one.
Path
Gets the file-system path of the item.
Android backend might return file path with "content:" scheme. Browser and iOS backends might return relative uris.
DO NOT use Path property to preserve access to the file or folder. Instead see Bookmarks page on how to keep access to the storage items.
DO NOT use Path property to directly read file by its path, as it won't work on most of mobile and browser platforms. Instead use OpenReadAsync and OpenWriteAsync.
CanBookmark
Returns true is item can be bookmarked and reused later.
SaveBookmarkAsync
Saves items to a bookmark. Returns identifier of a bookmark. Can be null if OS denied request.
GetBasicPropertiesAsync
Gets the basic properties of the current item. Currently available properties:
- Size
- DateCreated
- DateModified
GetParentAsync
Gets the parent folder of the current storage item.