IMAPIContainer : IMAPIProp

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Manages high-level operations on container objects such as address books, distribution lists, and folders. The IMAPIFolder : IMAPIContainer, IABContainer : IMAPIContainer, and IDistList : IMAPIContainer interfaces are derived from IMAPIContainer.

Header file:

Mapidefs.h

Exposed by:

Folder, address book container, and distribution list objects

Implemented by:

Message store, address book, and remote transport providers

Called by:

Client applications

Interface identifier:

IID_IMAPIContainer

Pointer type:

LPMAPICONTAINER

Transaction model:

Abstract class, never implemented

Vtable Order

GetContentsTable

Returns a pointer to the container's contents table.

GetHierarchyTable

Returns a pointer to the container's hierarchy table.

OpenEntry

Opens an object in the container, returning an interface pointer for further access.

SetSearchCriteria

Establishes search criteria for the container.

GetSearchCriteria

Obtains the search criteria for the container.

Required properties

Access

PR_CONTAINER_HIERARCHY (PidTagContainerHierarchy)

Read-only

PR_CONTAINER_CONTENTS (PidTagContainerContents)

Read-only

PR_CONTAINER_FLAGS (PidTagContainerFlags)

Read/write

See Also

Concepts

MAPI Interfaces