Interface IStorageItem
Manipulates storage items (files and folders) and their contents, and provides information about them
[NotClientImplementable]
public interface IStorageItem : IDisposable
- Inherited Members
- Extension Methods
Remarks
This interface inherits IDisposable . It's recommended to dispose IStorageItem when it's not used anymore.
Properties
CanBookmark
Returns true is item can be bookmarked and reused later.
bool CanBookmark { get; }
Property Value
Name
Gets the name of the item including the file name extension if there is one.
string Name { get; }
Property Value
Path
Gets the file-system path of the item.
Uri Path { get; }
Property Value
- Uri
Remarks
Android backend might return file path with "content:" scheme. Browser and iOS backends might return relative uris.
Methods
DeleteAsync()
Deletes the current storage item and it's contents
Task DeleteAsync()
Returns
GetBasicPropertiesAsync()
Gets the basic properties of the current item.
Task<StorageItemProperties> GetBasicPropertiesAsync()
Returns
GetParentAsync()
Gets the parent folder of the current storage item.
Task<IStorageFolder?> GetParentAsync()
Returns
MoveAsync(IStorageFolder)
Moves the current storage item and it's contents to a IStorageFolder
Task<IStorageItem?> MoveAsync(IStorageFolder destination)
Parameters
destination
IStorageFolderThe IStorageFolder to move the item into
Returns
SaveBookmarkAsync()
Saves items to a bookmark.
Task<string?> SaveBookmarkAsync()