存储接口

控制容器必须能够支持实现 IPersistStorageIPersistStreamIPersistStreamInit 的控件。 (可选)容器可以支持任何其他持久性接口,例如如提供支持的控件的 IPersistMemoryIPersistPropertyBagIPersistMoniker

一旦 ActiveX 控件容器选择并初始化了要使用的存储接口(IPersistStorageIPersistStreamIPersistStreamInit 等),该存储接口将在控件的使用寿命内保持为主存储接口,即控件将保持对存储的所有权。 这不会阻止容器保存到其他存储接口。

ActiveX 控件容器不需要支持另存为文本机制,因此使用 IPersistPropertyBag 和关联的容器端接口 IPropertyBag 是可选的。

容器