共用方式為


SPWebApplication.EventHandlersEnabled property

NOTE: This API is now obsolete.

取得或設定一個值,指出是否要啟用 Web 應用程式的事件處理常式。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("Use V3 style events")> _
Public Property EventHandlersEnabled As Boolean
    Get
    Set
'用途
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否則,請false。預設值為false。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace