ServerClientSessionSharedUpdateObject Method (IOptimizedPersistable, Boolean, Boolean) | 
 
            Updates an object
            
 
    Namespace: 
   VelocityDb.Session
    Assembly:
   VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntaxpublic override bool UpdateObject(
	IOptimizedPersistable obj,
	bool inFlush,
	bool deleteObjFromIndexes = true
)
Public Overrides Function UpdateObject ( 
	obj As IOptimizedPersistable,
	inFlush As Boolean,
	Optional deleteObjFromIndexes As Boolean = true
) As Boolean
public:
virtual bool UpdateObject(
	IOptimizedPersistable^ obj, 
	bool inFlush, 
	bool deleteObjFromIndexes = true
) override
abstract UpdateObject : 
        obj : IOptimizedPersistable * 
        inFlush : bool * 
        ?deleteObjFromIndexes : bool 
(* Defaults:
        let _deleteObjFromIndexes = defaultArg deleteObjFromIndexes true
*)
-> bool 
override UpdateObject : 
        obj : IOptimizedPersistable * 
        inFlush : bool * 
        ?deleteObjFromIndexes : bool 
(* Defaults:
        let _deleteObjFromIndexes = defaultArg deleteObjFromIndexes true
*)
-> bool Parameters
- obj
 - Type: VelocityDbIOptimizedPersistable
Object to be updated - inFlush
 - Type: SystemBoolean
Are we doing this as part of a page flush? Set to true to avoid a recursive page flush - deleteObjFromIndexes (Optional)
 - Type: SystemBoolean
Set to false if you know that this object is not part of any index. Safe to leave set to true in any case 
Return Value
Type: 
BooleanTrue if object is updated; otherwise false
See Also