Skip to main content

IStorageFile Interface

Definition​

Assembly:Avalonia.Base
Package:Avalonia

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

public interface IStorageFile

Implements: IStorageItem, IDisposable

Methods​

NameDescription
OpenReadAsyncOpens a stream for read access.
OpenWriteAsyncOpens stream for writing to the file.

OpenReadAsync Method​

Opens a stream for read access.

public System.Threading.Tasks.Task<System.IO.Stream> OpenReadAsync()

Returns​

System.Threading.Tasks.Task<System.IO.Stream>

Exceptions​

OpenWriteAsync Method​

Opens stream for writing to the file.

public System.Threading.Tasks.Task<System.IO.Stream> OpenWriteAsync()

Returns​

System.Threading.Tasks.Task<System.IO.Stream>

Exceptions​