Click to return to the Component Development home page    
IPersistPropertyBag2::Sav...     IPropertyBag::Read Method     Component Interface Refer...    
Web Workshop  |  Component Development

IPropertyBag Interface


The IPropertyBag interface provides an object with a property bag in which the object can persistently save its properties.

IPropertyBag Methods

Read Asks the property bag to read the named property into a caller-initialized VARIANT.
Write Asks the property bag to save the named property into a caller-initialized VARIANT.

Interface Information

Implementation Custom
Inherits from IUnknown
Header and IDL files Ocidl.h; Ocidl.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Remarks

When the object wishes to read a property in IPersistPropertyBag::Load, it calls IPropertyBag::Read. When the object is saving properties in IPersistPropertyBag::Save, it calls IPropertyBag::Write. Each property is described with a name, whose value is stored in a VARIANT. This information allows a client to save the property values as text, for instance, which is the primary reason why a client might choose to support IPersistPropertyBag.

The client records errors that occur during Read into the supplied error log.

See Also

IPropertyBag2



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.