SPEventReceiverDefinition.ContextId Property
Gets or sets the Guid (Globally Unique Identifier) for the context for the event receiver definitions.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property ContextId As Guid
Get
Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Guid
value = instance.ContextId
instance.ContextId = value
public Guid ContextId { get; set; }
Property Value
Type: System.Guid
A Guid that represents the identifier of the item that is associated with the SharePoint Foundation context.
Remarks
A context is a collection of attributes or properties that describes an execution environment. A context usually implemented as a series of name-value pairs that provide information about a component, like the container in which it resides. Functionality is provided for the context by creating event handlers for objects within the context collection and developing code to handle those events.
See Also
Reference
SPEventReceiverDefinition Class
SPEventReceiverDefinition Members