IOleContainer  1MPFJPO

The IOleContainer interface is used to enumerate objects in a compound document or lock a container in the running state. Container and object applications both implement this interface.

When to Implement

Applications that support links and links to embedded objects implement this interface to provide object enumeration, name parsing, and silent updates of link sources. Simple, nonlinking containers do not need to implement IOleContainer if it is useful mainly to support links to embedded objects.

When to Use

Call IOleContainer to enumerate the objects in a compound document or to lock a container so that silent updates of link sources can be carried out safely.

Many applications inherit the functions of IOleContainer by implementing IOleItemContainer1MMKGIR, which is used to bind item monikers.

Methods in VTable Order

IUnknown Methods

Description

QueryInterface2Y54585

Returns pointers to supported interfaces.

AddRef1SHW0SS

Increments reference count.

ReleaseDUW01A

Decrements reference count.

 

IParseDisplayNameQD_Z28 Method

Description

ParseDisplayNameLEMM77

Parses object s display name to form moniker.

 

IOleContainer Methods

Description

EnumObjects10J.2__

Enumerates objects in a container.

LockContainer21SFZ.Z

Keeps container running until explicitly released.

 

See Also

IOleItemContainer, IParseDisplayName