Attachment

Attachment()

の新しいインスタンスを初期化しますAttachmentclass.

public Attachment()

関連項目


Attachment(string, string)

の新しいインスタンスを初期化しますAttachmentclass.

public Attachment(string fileName, string filePath)
パラメータ タイプ 説明
fileName String 添付ファイル名。
filePath String 添付ファイルの相対パスなどフォルダ/ファイル.docxファイルが電子メール メッセージまたはデータ ファイルのアーカイブのルートにある場合は filename。

例外

例外 調子
ArgumentException スローされるタイミングfileNamenull または空です。
ArgumentException スローされるタイミングfilePathnull または空です。

関連項目


Attachment(string, string, string, long)

の新しいインスタンスを初期化しますAttachmentclass.

public Attachment(string id, string fileName, string filePath, long size)
パラメータ タイプ 説明
id String 添付ファイルの一意の (単一ファイルのコンテキストでの) 識別子。
fileName String 添付ファイル名。
filePath String 添付ファイルの相対パスなどフォルダ/ファイル.docxファイルが電子メール メッセージまたはデータ ファイルのアーカイブのルートにある場合は filename。
size Int64 添付ファイルのサイズ (バイト単位)。

例外

例外 調子
ArgumentException スローされるタイミングidnull または空です。
ArgumentException スローされるタイミングfileNamenull または空です。
ArgumentException スローされるタイミングfilePathnull または空です。

関連項目


Attachment(string, string, string, FileType, long)

の新しいインスタンスを初期化しますAttachmentclass.

public Attachment(string id, string fileName, string filePath, FileType fileType, long size)
パラメータ タイプ 説明
id String 添付ファイルの一意の (単一ファイルのコンテキストでの) 識別子。
fileName String 添付ファイル名。
filePath String 添付ファイルの相対パスなどフォルダ/ファイル.docxファイルが電子メール メッセージまたはデータ ファイルのアーカイブのルートにある場合は filename。
fileType FileType 添付ファイルの種類。
size Int64 添付ファイルのサイズ (バイト単位)。

例外

例外 調子
ArgumentException スローされるタイミングidnull または空です。
ArgumentException スローされるタイミングfileNamenull または空です。
ArgumentException スローされるタイミングfilePathnull または空です。
ArgumentNullException スローされるタイミングfileType無効である。

関連項目