MAPI �����t�H���_�[

適用対象: Outlook 2013 | Outlook 2016

検索結果フォルダーには、実際のメッセージではなく汎用フォルダー内のメッセージへのリンクが保持されます。 クライアントは、FOLDER_SEARCHを ulFolderType パラメーターとして使用して IMAPIFolder::CreateFolder メソッドを呼び出すことによって、検索結果フォルダーを作成します。 クライアントは、検索条件 (特定の特性を持つメッセージを除外するルール) を設定して適用することで、検索結果フォルダーに入力します。 検索条件は、 IMAPIContainer::SetSearchCriteria メソッドを使用して設定されます。 クライアントは、適用する検索条件を表す 1 つ以上の SRestriction 構造体を構築し、 SetSearchCriteria に渡します。 SetSearchCriteria では、検索ドメインを示すフォルダーの一覧と、検索の実行方法を制御するフラグのセットも指定します。

SetSearchCriteria identifies the messages that match the specified restriction. The selected messages (the ones that satisfy the criteria) are displayed as links in the search-results folder. When the client calls the IMAPIContainer::GetContentsTable method to access the contents table of the search-results folder, the selected messages are displayed in the table. Contents tables for search-results folders contain the same columns as contents tables for generic folders. ただし、検索結果フォルダーの 場合、PR_PARENT_ENTRYID (PidTagParentEntryId) プロパティは、リンクされたメッセージが存在するフォルダーのエントリ識別子を指定します。 Search-results folders are not considered parent folders.

�t�H���_�[�̌������ʂł́A���̐�������������܂��B

  • The only way that the contents of a search-results folder can be modified is through a call to SetSearchCriteria. For more information about the implementation of SetSearchCriteria, see Knowledge Base article 260322: How To Search Folders with the SetSearchCriteria Method.

  • ���b�Z�[�W��ړ��܂��͌������ʂ̃t�H���_�[�ɃR�s�[���邱�Ƃ͂ł��܂���B

  • Search-results folders cannot contain subfolders.

  • �N���C�A���g�ł́A�����̌�����������ʂ̃t�H���_�[��s�����Ƃ͂ł��܂���B

It is possible, however, to modify the properties of a search-results folder and use it to delete a message. When a message is deleted from a search-results folder, it is actually deleted from the real folder. However, deleting the search-results folder itself has no impact on the messages inside; they remain in their generic folders.

関連項目

[MAPI �t�H���_�