OfficeExtension.EventHandlerResult class

Enables the removal of an event handler. Returned by the EventHandlers.add method.

Note: The same RequestContext object that the handler was added in must be used when removing the handler. More information can be found in Remove an event handler.

Constructors

(constructor)(context, handlers, handler)

Constructs a new instance of the EventHandlerResult class

Properties

context

The request context associated with the object

Methods

remove()

Constructor Details

(constructor)(context, handlers, handler)

Constructs a new instance of the EventHandlerResult class

constructor(context: ClientRequestContext, handlers: EventHandlers<T>, handler: (args: T) => Promise<any>);

Parameters

handler

(args: T) => Promise<any>

Property Details

context

The request context associated with the object

context: ClientRequestContext;

Property Value

Method Details

remove()

remove(): void;

Returns

void