IPersistPropertyBag interface (ocidl.h)
Works with IPropertyBag and IErrorlog to define an individual property-based persistence mechanism.
Inheritance
The IPersistPropertyBag interface inherits from the IPersist interface.
Methods
The IPersistPropertyBag interface has these methods.
IPersistPropertyBag::InitNew Informs the object that it is being initialized as a newly created object. |
IPersistPropertyBag::Load Instructs the object to initialize itself using the properties available in the property bag, and to notify the provided error log object when errors occur. |
IPersistPropertyBag::Save Instructs the object to save its properties to the given property bag, and optionally, to clear the object's dirty flag. |
Remarks
IPersistPropertyBag provides an object with an IPropertyBag interface through which it can save and load individual properties. The object that implements IPropertyBag can then save those properties in various ways, such as name/value pairs in a text file. Errors encountered in the process (on either side) are recorded in an error log through IErrorlog. This error reporting mechanism works on a per-property basis instead of on all properties at once.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | ocidl.h |