Share via


SPEventReceiverDefinition.ContextItemId Property

Gets or sets the identifier for items in the SPContext object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property ContextItemId As Integer
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As Integer

value = instance.ContextItemId

instance.ContextItemId = value
public int ContextItemId { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that represents the index into the collection of name-value pairs that is the context object.

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. The context can be indexed by name or by this property.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

SPFormContext

SPViewContext