EventSpotterActivateWithEptdocument2TEventHandler Method (TEventHandler, String, String, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Activates a Content Studio version 5.3 and later synchronous event handler with sample data generated for an ept document and the TEventHandler type of event handler.

Namespace: ContentStudio.EventActions.SynchronousEventHandlers.Spotlijster
Assembly: EventHandlers.Spotlijster (in EventHandlers.Spotlijster.dll) Version: (

public void ActivateWithEptdocument2<TEventHandler>(
	TEventHandler handler,
	string eventName,
	string customData,
	string eptContent
where TEventHandler : class, ICSEventHandler2


Type: TEventHandler
The handler to activate. This handler must implement the ICSEventHandler2 interface.
Type: SystemString
The name of the event type ex. OnDocumentSave.

Use one of the following non case-sensitive names:

  • OnDocumentDelete
  • OnDocumentApprove
  • OnDocumentDestroy
  • OnDocumentReject
  • OnDocumentRevision
  • OnDocumentSave
  • OnDocumentCreate
  • OnDocumentCheckOut
  • OnDocumentCheckIn
  • OnBeforeDocumentSave
  • OnBeforeDocumentSynchronize
  • OnXmlIndexSave
  • OnXmlIndexFieldDelete
  • OnDocumentRestore
  • OnDocumentMoveInHierarchy
  • OnDocumentRevisionRestore
  • OnDocumentPreview
  • OnDocumentPreviewDispose
Type: SystemString
The custom data you would like to test. Custom data is the data entered in the command field in the event actions dialog in the Content Studio administrative interface.
Type: SystemString
Custom ept data, can be null to generate sample data.

Type Parameters

The type of event handler. This handler must implement the ICSEventHandler2 interface.


Note Note
The ICSEventHandler2 interface is avaliable with Content Studio version 5.3 and later.
Use this version of ActivateWithEptdocument2 when you test an event handler that derives directly from the SynchronousEventHandlerBase class or that implements the ICSEventHandler2 directly. Such an event handler can serve more that one event.
See Also