This topic has not yet been rated - Rate this topic

SPEventReceiverDefinition.ContextObjectId Property

Gets or sets the Guid (associated with the ContextType) for the context object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public Guid ContextObjectId { get; set; }

Property Value

Type: System.Guid
Guid that represents the identifier by which to access the context object.

This is the actual SPListItem object, but this property is only used for setting context lookups. For example, the create column action can be retrieved by an id that differs from the id for the create view action, although they are both within the settings context.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ