ReleaseExtension
TheReleaseExtensionmethod releases the specified extension object.
void ReleaseExtension (in ODExtension extension);
extension- A reference to an extension.
DISCUSSION
OpenDoc or an extension object client calls this method to release an extension object that was previously acquired using theAcquireExtensionmethod. If the extension was not previously acquired by the caller, theReleaseExtensionmethod raises an exception. After this method executes successfully, the specified extension object is no longer guaranteed to be valid.The
ODObjectclass has no inherent extensions of its own and therefore always raises an exception.OVERRIDING
Your subclass ofODPartcan override this method if your part supports extensions. If your part does not support the specified extension, your override method must call its inheritedReleaseExtensionmethod at the end of your implementation.EXCEPTIONS
kODErrUnsupportedExtension- This object does not recognize the extension object and therefore cannot release it.
SEE ALSO
TheODObject::AcquireExtensionmethod (page 440).
TheODObject::HasExtensionmethod (page 441).
TheODPartclass (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help