SPEventReceiverDefinition.ContextType property

Gets or sets the Guid that represents the type of the receiver process.

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

Syntax

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

value = instance.ContextType

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

Property value

Type: System.Guid
The Guid that represents the type of the receiver process.

Remarks

A context is an ordered sequence of properties that define an environment for the objects resident inside it. Contexts are created during the activation process for objects that require automatic services such as transactions, just-in-time activation, or security.

Multiple objects can live inside a context. A context intercepts calls to the class members and enforces policies that are applied to the class, such as synchronization.

The type of the receiver process is based on the globally unique identifier that is associated with Windows Workflow ("WinOE").

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace

Other resources

Feature Event Receiver

Working with Features