HasExtension
TheHasExtensionmethod returns a Boolean value that indicates whether the object supports the specified extension.
ODBoolean HasExtension (in ODType extensionName);
extensionName- The name of the extension to look for.
- return value
kODTrueif the object supports the specified extension, otherwisekODFalse.DISCUSSION
Your part can call this method before accessing an object's extension.The
ODObjectclass has no inherent extensions of its own and always returnskODFalse.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 inheritedHasExtensionmethod at the end of your implementation.SEE ALSO
TheODObject::AcquireExtensionmethod (page 440).
TheODObject::ReleaseExtensionmethod (page 444).
TheODPartclass (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Making Your Semantic-Interface Extension Available" on page 433 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.