ObjectSpace :: contextEventHandling - Context event handling property
The property indicates, whether context event handling is enabled ( true ) or not ( false ). When event handling is disabled, events are not handled by any context event handlers. The property is different from the BaseContext ::enabled property, which only indicates the effect of object space context handlers. It is also different from the ObjectSpace ::eventHandling property, which only affects application event handling.
Context event handlers are event handlers typically implemented in type or property context classes in order to handle several database events (property or instance state transitions).
The value is true when the function was executed successfully. Otherwise the value is set to false .
Implementation overview
- Is context event handling enabled?
ObjectSpace :: contextEventHandling (  ) - Change context event handling state
ObjectSpace :: contextEventHandling ( bEnable )
Implementation details
-
Is context event handling enabled?
bool ObjectSpace  :: contextEventHandling (  )
The function returns, whether context event handling is enabled ( true ) or not ( false ).
to list
-
Change context event handling state
bool ObjectSpace  :: contextEventHandling ( bool bEnable )
The function allows disabling handling database events by implemented context class event handlers. Passing false in bEnable will disable context event handling. Passing true will enabling context event handling.
Notes:Disabling context event handling for the object space means disabling context handler for all subordinated property handles.
- bEnable
- Enable resource
In order to enable the referenced resource true should be passed. Passing false will disable the resource.
to list
- bEnable
- Enable resource