mapi_attachment

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++ アプリケーションに直接統合できます。

プロパティ

名前型アクセス説明
filenamestd::string読み取り/書き込み添付ファイルのファイル名を保存します
datastd::vector<std::uint8_t>読み取り/書き込み添付ファイルの生バイト内容を保持します
mime_typestd::string読み取り/書き込み添付ファイルの MIME タイプ文字列を格納します。
content_idstd::string読み取り/書き込み添付ファイルのコンテンツ識別子を格納します。
embedded_messagestd::shared_ptr<mapi_message>読み取り/書き込み埋め込みメッセージの添付ファイルを保持します。
propertiesmapi_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 を返します。

参照

 日本語