New to Telerik UI for .NET MAUIStart a free 30-day trial

IFileInfo

Interface

Represents information about a file.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public interface IFileInfo

Properties

Gets the name of the file.

C#
string FileName { get; }

Gets the size of the file in bytes.

C#
long FileSize { get; }

Methods

Opens the file for reading.

C#
Task<Stream> OpenReadAsync()
Returns:

Task<Stream>

A stream for reading the file.