ReserveSectionID
Document Shell
Mac OSThe
ReserveSectionIDmethod reserves a section ID for the lifetime of the document of the specified draft.
ODBoolean ReserveSectionID (in ODULong sectionID, in ODDraft draft);
sectionID- The section ID to be reserved.
draft- A reference to the draft in which to reserve the section ID.
- return value
kODTrueif the specified section ID is not in use and not already reserved, otherwisekODFalse.DISCUSSION
This method guarantees that the specified section ID will not be issued by theNewSectionIDmethod for the lifetime of the document. If this method returns false, the caller should request a different ID or call theNewSectionIDmethod.SEE ALSO
TheODLinkManager::NewSectionIDmethod (page 368).