SPContentType.EventReceivers property

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

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

Syntax

'Declaration
Public ReadOnly Property EventReceivers As SPEventReceiverDefinitionCollection
    Get
'Usage
Dim instance As SPContentType
Dim value As SPEventReceiverDefinitionCollection

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

Property value

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

Remarks

For more information about event receiver definitions, see Event Fundamentals.

See also

Reference

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

Other resources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy