IPersistPropertyBag2::LoadIPersistPropertyBag2::Load*
*Contents  *Index  *Topic Contents
*Previous Topic: IPersistPropertyBag2::IsDirty
*Next Topic: IPersistPropertyBag2::Save

IPersistPropertyBag2::Load

HRESULT Load(
    [in] IPropertyBag2 *pPropBag, 
    [in] IErrorLog *pErrorLog
);

Instructs the object to initialize itself using the properties available in the property bag, notifying the provided error log object when errors occur. All property storage must take place within this function call as the object cannot keep the IPropertyBag2 interface pointer passed in pPropBag.

pPropBag
[in] Address of the caller's IPropertyBag2 interface through which the object can read properties. This argument cannot be NULL.
pErrorLog
[in] Address of the caller's IErrorLog interface in which the object stores any errors that occur during initialization. This argument can be NULL; in that case, the caller is not interested in errors.

E_NOTIMPL is not a valid return code because any object implementing this interface must support the entire functionality of the interface.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.