共用方式為


SPWebApplication.EventHandlersEnabled Property

NOTE: This API is now obsolete.

Gets or sets a value indicating whether to enable event handlers for the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use V3 style events")> _
Public Property EventHandlersEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.EventHandlersEnabled

instance.EventHandlersEnabled = value
[ObsoleteAttribute("Use V3 style events")]
public bool EventHandlersEnabled { get; set; }

Property Value

Type: System.Boolean
true to enable event handlers; otherwise, false. The default value is false.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace