ContentUpdated
TheContentUpdatedmethod is called to notify this link-source object that its content has been updated.
void ContentUpdated (in ODUpdateID id, in ODLinkKey key);
id- The update ID associated with the new content.
key- A valid link key obtained by a prior call to the
Lockmethod.DISCUSSION
If your part is the source part for this link-source object, you should call this method after writing the initial content to the content storage unit of this link-source object and after making changes to the content of that storage unit.The
idparameter identifies the new version of this link-source object's content; its value depends on the circumstance in which this method is called:
The
- If you called the
Clearmethod before calling this method, theidparameter should be the same update ID that you passed to theClearmethod.- If your part originated the changes to its source content, the
idparameter should be a new update ID that you to obtained by calling theUniqueUpdateIDmethod of the session object.- If the changes occurred because the source content of this link contains the destination content of another link that was updated, the
idparameter should be the update ID that your part received when it was notified to update the destination content within the source content for this link.
keyparameter ensures thread safety. Before calling this method, you must call theLockmethod to obtain this key.EXCEPTIONS
kODErrInvalidLinkKey- The
keyparameter is not a valid key for this link-source object.kODErrUnknownUpdateID- The specified update ID is the reserved value
kODUnknownUpdate.SEE ALSO
TheODLinkKeytype (page 924).
TheODUpdateIDtype (page 917).
TheODFrame::ChangeLinkStatusmethod (page 308).
TheODFrame::ContentUpdatedmethod (page 314).
TheODLinkSource::GetUpdateIDmethod (page 381).
TheODLinkSource::Lockmethod (page 382).
TheODPart::EmbeddedFrameUpdatedmethod (page 512).
TheODSession::UniqueUpdateIDmethod (page 623).