IOleContainer interface
Enumerates 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 occur without interruption until the container is explicitly released.
Many applications inherit the functions of IOleContainer by implementing IOleItemContainer, which is used to bind item monikers.
Members
The IOleContainer interface inherits from IParseDisplayName. IOleContainer also has these types of members:
Methods
The IOleContainer interface has these methods.
| Method | Description |
|---|---|
| EnumObjects |
Enumerates the objects in the current container. |
| LockContainer |
Keeps the container for embedded objects running until explicitly released. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IOleContainer is defined as 0000011b-0000-0000-C000-000000000046 |
See also