共用方式為


IPersistPropertyBagImpl::Save

Saves the object's properties into a client-supplied property bag.

STDMETHOD(Save)( 
   LPPROPERTYBAG pPropBag, 
   BOOL fClearDirty, 
   BOOL fSaveAllProperties  
);

Remarks

ATL uses the object's property map to store this information. By default, this method saves all properties, regardless of the value of fSaveAllProperties.

See IPersistPropertyBag::Save in the Windows SDK.

Requirements

Header: atlcom.h

See Also

Reference

IPersistPropertyBagImpl Class

BEGIN_PROP_MAP

IPersistPropertyBagImpl::Load

IPropertyBag