Share via


ReadOnlyFile Class

Definition

A representation of a file, that is read-only, and its content type.

public ref class ReadOnlyFile : Microsoft::Maui::Storage::FileBase
public class ReadOnlyFile : Microsoft.Maui.Storage.FileBase
type ReadOnlyFile = class
    inherit FileBase
Public Class ReadOnlyFile
Inherits FileBase
Inheritance
ReadOnlyFile

Constructors

ReadOnlyFile(FileBase)

Initializes a new instance of the ReadOnlyFile class from an existing instance.

ReadOnlyFile(String, String)

Initializes a new instance of the ReadOnlyFile class from a file path, explicitly specifying the content type.

ReadOnlyFile(String)

Initializes a new instance of the ReadOnlyFile class from a file path.

Properties

ContentType

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

(Inherited from FileBase)
FileName

Gets or sets the filename for this file.

(Inherited from FileBase)
FullPath

Gets the full path and filename.

(Inherited from FileBase)

Methods

OpenReadAsync()

Opens a Stream to the corresponding file on the filesystem.

(Inherited from FileBase)

Applies to