Sitecore 5.0 API

State.DispatchEvents Property

Gets or sets a boolean that indicates if events are dispatched.

[Visual Basic]
Public Shared Property DispatchEvents As Boolean
[C#]
public static bool DispatchEvents {get; set;}

Property Value

True, if events are dispatched, otherwise false.

Remarks

The event dispatcher is the event handling mechanism in Sitecore. Certain actions raise events, for instance saving an item, publishing, tracing and exception handling.

This flag can be used to disable event handling on the current web page.

The scope of the value is page and it is stored in the Items variable "SC_DISPATCH_EVENTS".

See Also

State Class | Sitecore.Configuration Namespace