CheckValid
TheCheckValidmethod checks whether this extension object is valid and generates an exception if it is not valid.
void CheckValid ();DISCUSSION
Every subclass ofODExtensionmust test the extension object's validity at the beginning of the implementation of each of its noninherited methods (except for the subclass-specific initialization method) by calling either this method or theIsValidmethod. Unlike theIsValidmethod, calling this method has no effect if this extension object is valid; otherwise it generates an exception.If you want to ensure that you make calls only to a valid extension object, without generating an exception, then call the
IsValidmethod instead.EXCEPTIONS
kODErrInvalidExtension- This extension object is invalid and should not be used because its base object no longer exists.
SEE ALSO
TheODExtension::IsValidmethod (page 218).
"Implementing Extensions" on page 445 in OpenDoc Programmer's Guide.