共用方式為


SPContentType.EventReceivers property

取得集合的內容類型的事件接收器定義。

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

Syntax

'宣告
Public ReadOnly Property EventReceivers As SPEventReceiverDefinitionCollection
    Get
'用途
Dim instance As SPContentType
Dim value As SPEventReceiverDefinitionCollection

value = instance.EventReceivers
public SPEventReceiverDefinitionCollection EventReceivers { get; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinitionCollection
事件接收器定義的集合。

備註

如需有關事件接收器定義的詳細資訊,請參閱Event Fundamentals

請參閱

參照

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

其他資源

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy