다음을 통해 공유


IPersistDictionary::Save Method

This method should save data to a Dictionary object.

HRESULT Save(
    IDispatch* pdispDict,
    Long fSameAsLoad
);

Parameters

  • pdispDict
    [in] A pointer to the IDictionary interface of the Dictionary object in which the data should be saved.

  • fSameAsLoad
    [in] A long that is set to TRUE if the Dictionary object pointed to by the pdispDict parameter is the same as the one from which the persisted values of the component were loaded.

Return Value

This method must return the HRESULT value S_OK to indicate success, and should generally return one of the standard COM error values to indicate failure.

Remarks

The object typically uses the put_Value method on the IDictionary interface to save VARIANT values. For more information about the IDictionary interface, see Dictionary Object.

See Also

Other Resources

IPersistDictionary Interface

IPersistDictionary::Load Method