Share via


SPEventReceiverDefinition.ContextEventType property

Gets or sets the Guid (Globally Unique Identifier) of the receiver process that is associated with this context event.

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

Syntax

'Declaration
Public Property ContextEventType As Guid
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid

value = instance.ContextEventType

instance.ContextEventType = value
public Guid ContextEventType { get; set; }

Property value

Type: System.Guid
A Guid that represents the identifier for the type object for the context event.

Remarks

User activity generates events that are defined by event receiver objects and associated with the event host. For example, if the user added an item to a list within a view, then the event receiver object that is used is the one that handles Add() events for the view context.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

SPContext

SPEventReceiverType

Other resources

Event Host Type