mapi_attachment
概要
mapi_attachment は C++ 用の Aspose.Email FOSS のクラスです。
説明
mapi_attachment は C++ 用の Aspose.Email FOSS ライブラリにあるクラスで、プログラムから使用できる 4 つのメソッドと 6 つのプロパティを公開しています。
コア機能には、std::string; std::vector<std::uint8_t>; std::string が含まれます。これらの操作により、開発者は mapi_attachment 機能を C++ アプリケーションに直接統合できます。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
filename | std::string | 読み取り/書き込み | 添付ファイルのファイル名を保存します |
data | std::vector<std::uint8_t> | 読み取り/書き込み | 添付ファイルの生バイト内容を保持します |
mime_type | std::string | 読み取り/書き込み | 添付ファイルの MIME タイプ文字列を格納します。 |
content_id | std::string | 読み取り/書き込み | 添付ファイルのコンテンツ識別子を格納します。 |
embedded_message | std::shared_ptr<mapi_message> | 読み取り/書き込み | 埋め込みメッセージの添付ファイルを保持します。 |
properties | mapi_property_collection | 読み取り/書き込み | この添付ファイルの MAPI プロパティのコレクションを取得します。 |
メソッド
| シグネチャ | 説明 |
|---|---|
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string) → mapi_attachment | 生のバイトデータから添付ファイルを作成します。 |
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string) → mapi_attachment | 入力ストリームから読み取って添付ファイルを作成します。 |
load_data(stream: std::istream) | 指定された入力ストリームから添付ファイルの内容をオブジェクトに読み込みます。 |
is_embedded_message() → bool | 添付ファイルが埋め込みメッセージの場合は true を返します。 |