OfficeExtension.EventHandlerResult class

启用删除事件处理程序。 由方法返回。EventHandlers.add

注意: 删除处理程序时,必须使用添加处理程序的同一 RequestContext 对象。 有关详细信息,请参阅 删除事件处理程序

注解

使用方

构造函数

(constructor)(context, handlers, handler)

构造类的新 EventHandlerResult 实例

属性

context

与对象关联的请求上下文

方法

remove()

构造函数详细信息

(constructor)(context, handlers, handler)

构造类的新 EventHandlerResult 实例

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

参数

handler

(args: T) => Promise<any>

属性详细信息

context

与对象关联的请求上下文

context: ClientRequestContext;

属性值

方法详细信息

remove()

remove(): void;

返回

void