Skip to main content

IStorageFile Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Represents a file. Provides information about the file and its contents, and ways to manipulate them.

Definition

Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IStorageFile : IStorageItem,
IDisposable
View Source
ImplementsIStorageItem, IDisposable

Properties

CanBookmarkReturns true is item can be bookmarked and reused later.
(Inherited from IStorageItem)
NameGets the name of the item including the file name extension if there is one.
(Inherited from IStorageItem)
PathGets the file-system path of the item.
(Inherited from IStorageItem)

Methods

DeleteAsync()Deletes the current storage item and it's contents
(Inherited from IStorageItem)
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
GetBasicPropertiesAsync()Gets the basic properties of the current item.
(Inherited from IStorageItem)
GetParentAsync()Gets the parent folder of the current storage item.
(Inherited from IStorageItem)
MoveAsync(IStorageFolder)Moves the current storage item and it's contents to a IStorageFolder
(Inherited from IStorageItem)
OpenReadAsync()Opens a stream for read access.
OpenWriteAsync()Opens stream for writing to the file.
SaveBookmarkAsync()Saves items to a bookmark.
(Inherited from IStorageItem)

Extension Methods

TryGetLocalPath()Gets the local file system path of the item as a string.
(Defined by StorageProviderExtensions)

See Also

Reference

Avalonia.Platform.Storage Namespace