GetName
The GetName method returns the name of this document.
ODDocumentName GetName ();
- return value
- The name of the document, or an empty sequence if the document does not have a name.
DISCUSSION
Although parts can call this method, they are not usually concerned with document names.If this document has a name, this method returns a copy of that name. Otherwise, the
textfield of the resultODDocumentNamestructure represents an empty sequence of characters; that is, thetextfield is anODByteArraystructure whose_lengthfield contains 0 and whose_bufferfield contains a null pointer.EXCEPTIONS
kODErrInvalidPersistentFormat- Unable to read the name from persistent storage because it is not in a recognized format.
SEE ALSO
TheODDocumentNametype (page 902).
TheODDocument::SetNamemethod (page 145).