TransactionGetObject(ObjectId,
OpenMode) Method
|
Calls the OpenObject() method of the
underlying C++ object for the passed id
within the specified open mode.
Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version:
24.2.0.0
Syntax
public virtual DBObject GetObject(
ObjectId id,
OpenMode mode
)
Public Overridable Function GetObject (
id As ObjectId,
mode As OpenMode
) As DBObject
public:
virtual DBObject^ GetObject(
ObjectId id,
OpenMode mode
)
abstract GetObject :
id : ObjectId *
mode : OpenMode -> DBObject
override GetObject :
id : ObjectId *
mode : OpenMode -> DBObject
Parameters
- id ObjectId
- [in] Identifier of the object to obtain access to.
- mode OpenMode
- [in] Mode to obtain in.
Return Value
DBObject
A handle to the retrieved object.
Remarks
It is recommended
to check if the retrieved object is valid after method
execution.
See Also