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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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