Share via


EventHandlersEnabled Property

The EventHandlersEnabled property of the SPVirtualServerConfig class gets or sets a Boolean value that specifies whether event handlers for document libraries are enabled.

Property Value

true if event handlers are enabled; otherwise, false.

Remarks

Setting the value of the EventHandlerEnabled property requires calling the Update method of the SPPropertyBag class to commit the property changes to the database.

For information on how to use document library events, see Handling Document Library Events.

Example

The following code example enables event handlers for document libraries on the specified virtual server.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security