共用方式為


EmailAttachment 類別

定義

表示電子郵件檔附件。

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
繼承
EmailAttachment

建構函式

EmailAttachment(FileBase)

根據 FileBase 物件,初始化 類別的新實例EmailAttachment

EmailAttachment(String, String)

根據所提供路徑中指定的檔案,並提供明確的MIME檔案類型,初始化 類別的新實例 EmailAttachment

EmailAttachment(String)

根據所提供路徑中指定的檔案,初始化 類別的新實例 EmailAttachment

屬性

ContentType

取得或設定檔案的內容類型為MIME類型(例如: image/png)。

(繼承來源 FileBase)
FileName

取得或設定這個檔案的檔名。

(繼承來源 FileBase)
FullPath

取得完整路徑和檔名。

(繼承來源 FileBase)

方法

OpenReadAsync()

Stream開啟檔案系統上對應檔案的 。

(繼承來源 FileBase)

適用於