SessionBaseUpdateObject Method (Object, Action) |
Provides a way to update an object in a multi thraeded scenario where we must make sure that object page isn't flushed until updates to object are done.
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public virtual bool UpdateObject(
Object obj,
Action codeBlock
)
Public Overridable Function UpdateObject (
obj As Object,
codeBlock As Action
) As Boolean
public:
virtual bool UpdateObject(
Object^ obj,
Action^ codeBlock
)
abstract UpdateObject :
obj : Object *
codeBlock : Action -> bool
override UpdateObject :
obj : Object *
codeBlock : Action -> bool
Parameters
- obj
- Type: SystemObject
Object to update - codeBlock
- Type: SystemAction
Block of code doing actual update to the object
Return Value
Type:
Booleantrue if object updated; otherwise false
See Also