SPEventReceiverDefinition.Delete Method

Deletes the event receiver registration.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Sub Delete
'Usage
Dim instance As SPEventReceiverDefinition

instance.Delete()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public void Delete()

Remarks

Event handlers are registered at the site or site collection level.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

SPSite

SPWeb

SPXmlDocumentCollection