Share via


ShareFile Class

Definition

A representation of a file that can be used with the IShare API.

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

Constructors

ShareFile(FileBase)

Initializes a new instance of the ShareFile class from the given FileBase object.

ShareFile(String, String)

Initializes a new instance of the ShareFile class with the given file path and content type.

ShareFile(String)

Initializes a new instance of the ShareFile class with the given 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