All Frameworks  Class Hierarchy  This Framework  Indexes

ObjectModelerBase Global Function CATLockDocument


HRESULT CATLockDocument(CATDocument& iDocument)
Increases the reference's counter of links on the document.
Role: The life cycle of the document is not managed by the AddRef/Release mechanism. The mechanism of reference/unreference is CATLockDocument to increase the count of links on the document, and CATUnLockDocument to decrease its count. Such as Release, CATUnLockDocument closes the document in the session when the counter is null.

When do you use this mechanism ?
Parameters:
iDocument
The document that is to be locked.
See also:
CATDocumentServices

This object is included in the file: CATSessionServices.h

Copyright © 2003, Dassault Systèmes. All rights reserved.