SPEventReceiverDefinition.Type property

Gets or sets the type of event for the event receiver.

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

Syntax

'Declaration
Public Property Type As SPEventReceiverType
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As SPEventReceiverType

value = instance.Type

instance.Type = value
public SPEventReceiverType Type { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverType
An SPEventReceiverType value representing the type of event.

Remarks

Users perform actions such as delete, update, check in, or convert on Microsoft SharePoint Foundation objects. When a SharePoint Foundation object has some action performed on it by the user, the object generates an event. This event that specified that an action occurred must be received by the appropriate event host within the SharePoint Foundation farm for processing.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPContext

SPField

SPFile