Condividi tramite


SPEventReceiverDefinition.ContextCollectionId Property

Gets or sets the Guid (Globally Unique Identifier) of the collection of context objects that are associated with the specified SharePoint Foundation event receiver processes.

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

Syntax

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

value = instance.ContextCollectionId

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

Property Value

Type: System.Guid
A Guid that represents the identifier by which to retrieve the context collection object.

Remarks

A context is a collection of name-value pairs that provide information about a site and its components. A context collection is a series of contexts that are grouped together to provide similar functionalities. For example, a word processor may have a file context, an edit context, and a view context. 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

Microsoft.SharePoint Namespace

GetContextSite(HttpContext)

SPContext

SPEventReceiver