IPropertyStorage::Revert  4TK_MD

Discards all changes to the property set it was opened or changes were last committed. Has no effect on a direct-mode property set.

HRESULT Revert();

Return Values

This method supports the standard return value E_UNEXPECTED, as well as the following:

S_OK

Success.

 

Remarks

For transacted-mode property sets, discards all changes that have been made in this property set since set was opened or the time it was last committed (depending on which is later). After this operation, any existing storage- or stream-valued properties that have been opened from the property set being reverted are invalid and can no longer be used. The error STG_E_REVERTED will be returned on all calls except Release using these streams or storages.

For direct-mode property sets, this request is ignored and returns S_OK.

See Also

IPropertyStorage::Commit