IPersistPropertyBag::InitNew

Called by the container when the control is initialized to initialize the property bag.

HRESULT InitNew(void);
 

Return Values

S_OK
The object successfully initialized itself. This should be returned even if the object doesn't do anything in the method.
CO_E_ALREADYINITIALISED
The object has already been initialized.
E_OUTOFMEMORY
The storage object was not initialized due to a lack of memory.
E_UNEXPECTED
The storage object was not initialized due to some reason other than a lack of memory.

Remarks

This method informs the object that it is being initialized as a newly created object.

E_NOTIMPL should not be returned—use S_OK when the object has nothing to do in the method.

See Also

IPersistPropertyBag::Load