OfficeExtension.EventHandlers class

Constructors

(constructor)(context, parentObject, name, eventInfo)

Constructs a new instance of the EventHandlers class

Methods

add(handler)
remove(handler)

Constructor Details

(constructor)(context, parentObject, name, eventInfo)

Constructs a new instance of the EventHandlers class

constructor(context: ClientRequestContext, parentObject: ClientObject, name: string, eventInfo: EventInfo<T>);

Parameters

name
string
eventInfo
EventInfo<T>

Method Details

add(handler)

add(handler: (args: T) => Promise<any>): EventHandlerResult<T>;

Parameters

handler
(args: T) => Promise<any>

Returns

EventHandlerResult<T>

remove(handler)

remove(handler: (args: T) => Promise<any>): void;

Parameters

handler
(args: T) => Promise<any>

Returns

void