Sdílet prostřednictvím


ReadOnlyFile Class

Definition

A representation of a file and its content type.

public class ReadOnlyFile : Xamarin.Essentials.FileBase
Inheritance
System.Object
ReadOnlyFile

Constructors

ReadOnlyFile(FileBase)

Construct a file taking in file.

ReadOnlyFile(String, String)

Construct a file taking in file path and content type (MIME type).

ReadOnlyFile(String)

Construct a file taking in file path.

Properties

ContentType

Gets or sets the file's content type as a MIME type (eg: image/png).

(Inherited from FileBase)
FileName (Inherited from FileBase)
FullPath

This property is purely informative, and does not always return the actual physical path to the file. To get the file, use OpenReadAsync method.

(Inherited from FileBase)

Methods

OpenReadAsync() (Inherited from FileBase)

Applies to