UnregisterDependent
TheUnregisterDependentmethod removes the previously registered destination part from the list of parts to be notified whenever the link is updated.
void UnregisterDependent (in ODPart clientPart);
clientPart- A reference to the destination part to be unregistered.
DISCUSSION
If your part is the destination of this link, you can call this method to unregister your part as a dependent. Dependent parts receive automatic notification of any changes to the link's content. You can reregister your part by calling theRegisterDependentmethod.You should call this method in your part's
HandleEventmethod after calling theShowLinkDestinationInfomethod if the user has broken the link or has changed from automatic to manual notification. In either case, you should call this method only if the selected link destination is your part's only registered destination of the link-source object corresponding to this link object.The UnregisterDependent method returns without error if the specified destination part was not previously registered as a dependent of this link.
SEE ALSO
TheODLink::RegisterDependentmethod (page 355).
TheODLink::ShowLinkDestinationInfomethod (page 357).
"Breaking and Cutting Links" on page 394 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help