EmailAttachment Class

Definition

Represents a email file attachment.

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

Constructors

EmailAttachment(FileBase)

Initializes a new instance of the EmailAttachment class based off a FileBase object.

EmailAttachment(String)

Initializes a new instance of the EmailAttachment class based off the file specified in the provided path.

EmailAttachment(String, String)

Initializes a new instance of the EmailAttachment class based off the file specified in the provided path and providing an explicit MIME filetype.

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