2.2.4.11 Event Receivers Result Set

The Event Receivers Result Set contains information about the event receivers defined for an event host. This result set MUST contain one row for each event receiver registered for the event host.

The Event Receivers Result Set is defined using T-SQL syntax, as follows.

 Id                             uniqueidentifier,
 Name                           nvarchar(256),
 SiteId                         uniqueidentifier,
 WebId                          uniqueidentifier,
 HostId                         uniqueidentifier,
 HostType                       int,
 ItemId                         int,
 DirName                        nvarchar(256),
 LeafName                       nvarchar(128),
 Synchronization                int,
 Type                           int,
 SequenceNumber                 int,
 RemoteUrl                      nvarchar(4000),
 Assembly                       nvarchar(256),
 Class                          nvarchar(256),
 SolutionId                     varbinary(512),
 Data                           nvarchar(256),
 Filter                         nvarchar(256),
 SourceId                       varbinary(512),
 SourceType                     int,
 Credential                     int,
 ContextType                    varbinary(16),
 ContextEventType               varbinary(16),
 ContextId                      varbinary(16),
 ContextObjectId                varbinary(16),
 ContextCollectionId            varbinary(16),
 Hash                           nvarchar(50),
 ValidatorsHash                 char(64),
 ValidationErrorUrl             nvarchar(4000),
 ValidationErrorMessage         nvarchar(4000)

Id: The Event Receiver Identifier (section 2.2.1.1.3) of the event receiver.

Name: The display name of the event receiver.

SiteId: The site collection identifier for a site collection that contains the event host on which the event receiver is registered.

WebId: The site identifier for the site (2) that contains the event host on which the event receiver is registered.

HostId: The document identifier for the event host on which the event receiver is registered.

HostType: The Event Host Type (section 2.2.1.2.5) of the event host on which the event receiver is registered.

ItemId: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

DirName: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

LeafName: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

Synchronization: Contains the execution behavior of the event receiver. The value MUST be one of the following values.

Value

Description

0

If the Event Receiver Type (section 2.2.1.2.6) specified by the Type column is less than 10001, the execution behavior of the event receiver MUST be synchronous.

1

The execution behavior of the event receiver MUST be synchronous.

2

The execution behavior of the event receiver MUST be asynchronous.

Type: The Event Receiver Type of the event receiver.

SequenceNumber: An ordinal value that determines the relative order in which the event receiver is triggered. SequenceNumber MUST be greater than or equal to zero, and less than or equal to 65535.

RemoteUrl: The URL of the remote event receiver.

Assembly: The name of the .NET assembly that contains the implementation of the event receiver.

Class: The name of the .NET class definition that contains the implementation of the event receiver.

SolutionId: The sandboxed solution identifier of the sandboxed solution.

Data: Additional data persisted on behalf of the event receiver implementation, to be passed to the event receiver.

Filter: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

SourceId: The feature identifier or content type identifier of the feature or content type that registered the event receiver. If the event receiver was not registered by a feature or content type, the value MUST be NULL.

SourceType: An integer value that specifies the source of the registration for the event receiver. The value MUST be one of the following values.

Value

Description

0

The event receiver does not come from a specially treated source.

1

A content type registered the event receiver.

2

A feature registered the event receiver.

Credential: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

ContextType: The workflow identifier of the workflow that the event (2) relates to, if any.

ContextEventType: Reserved. The server MUST default this value to NULL and a client MUST NOT use this value.

ContextId: The workflow identifier for the registered workflow, if any.

ContextObjectId: The document identifier for the object instance that the workflow is registered against, if any.

ContextCollectionId: A workflow identifier for the workflow instance that manages the event receiver, if any.

Hash: The implementation-specific hash of the content of the sandboxed solution.

ValidatorsHash: The implementation-specific hash of the sandboxed solution validator that validated the sandboxed solution.

ValidationErrorUrl: The URL to render the sandboxed solution validator validation failed. If validation succeeded, it MUST be NULL.

ValidationErrorMessage: If the sandboxed solution validator validation failed, this stores an error message string. Otherwise, it MUST be NULL.