Partager via


IMAPIFolder : IMAPIContainer

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Performs operations on the messages and subfolders in a folder.

Header file:

Mapidefs.h

Exposed by:

Folder objects

Implemented by:

Message store providers

Called by:

Client applications and MAPI

Interface identifier:

IID_IMAPIFolder

Pointer type:

LPMAPIFOLDER

Transaction model:

Nontransacted

Vtable Order

CreateMessage

Creates a new message.

CopyMessages

Copies or moves one or more messages.

DeleteMessages

Deletes one or more messages.

CreateFolder

Creates a new subfolder.

CopyFolder

Copies or moves a subfolder.

DeleteFolder

Deletes a subfolder.

SetReadFlags

Sets or clears the MSGFLAG_READ flag in the PR_MESSAGE_FLAGS (PidTagMessageFlags) property of one or more of the folder's messages, and manages the sending of read reports.

GetMessageStatus

Obtains the status associated with a message in a particular folder.

SetMessageStatus

Sets the status associated with a message.

SaveContentsSort

Sets the default sort order for a folder's contents table.

EmptyFolder

Deletes all messages and subfolders from a folder without deleting the folder itself.

Required properties

Access

PR_DISPLAY_NAME (PidTagDisplayNamePrefix)

Read/write

PR_ENTRYID (PidTagEntryId)

Read-only

PR_FOLDER_TYPE (PidTagFolderType)

Read/write

PR_OBJECT_TYPE (PidTagObjectType)

Read-only

PR_PARENT_ENTRYID (PidTagParentEntryId)

Read-only

PR_RECORD_KEY (PidTagRecordKey)

Read-only

PR_STORE_ENTRYID (PidTagStoreEntryId)

Read-only

PR_STORE_RECORD_KEY (PidTagStoreRecordKey)

Read-only

See Also

Concepts

MAPI Interfaces