The PropertyBag object is used in the parameters of the WriteProperties and ReadProperties events. The WriteProperties event is used to save property values to the PropertyBag object using the WriteProperty method. The ReadProperties event is used to load property values from the PropertyBag object using the ReadProperty method.