Share via


Visual Basic Reference

PropertyBag Object

See Also    Example    Properties    Methods    Events

A PropertyBag object holds information that is to be saved and restored across invocations of an object.

Remarks

A PropertyBag object is passed into an object through the ReadProperties event and the WriteProperties event in order to save and restore the state of the object. Using the methods of the PropertyBag object, the object can read or write properties of itself. The ReadProperty method of the PropertyBag object is used to read a value for a property, while the WriteProperty method of the PropertyBag object is used to write a value of a property. The value of a property can itself be an object; in that case the PropertyBag object will attempt to save it.