This topic has not yet been rated - Rate this topic

SPContentType.EventReceivers Property

Gets the collection of event receiver definitions for the content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPEventReceiverDefinitionCollection EventReceivers { get; }

Property Value

Type: Microsoft.SharePoint.SPEventReceiverDefinitionCollection
The collection of event receiver definitions.

For more information about event receiver definitions, see Events in SharePoint Foundation 2010.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Always returns null
Checking this property in ILSpy reveals that this property only returns null
Event receiver “inheritance” between parent and child content types
If you would like to learn more about the behavior of event receivers attached to content types read this post:
http://pholpar.wordpress.com/2010/08/06/event-receiver-inheritance-between-parent-and-child-content-types