Excel.RequestContext class

RequestContext 对象可加快对 Excel 应用程序的请求。The RequestContext object facilitates requests to the Excel application. 由于 Office 加载项和 Excel 应用程序在两个不同的进程中运行, 因此请求上下文是从外接程序获取对 Excel 对象模型的访问权限所必需的。Since the Office add-in and the Excel application run in two different processes, the request context is required to get access to the Excel object model from the add-in.

Extends

构造函数

(constructor)(url)

构造RequestContext类的新实例Constructs a new instance of the RequestContext class

属性

application
runtime
workbook

构造函数详细信息

(constructor)(url)

构造RequestContext类的新实例Constructs a new instance of the RequestContext class

constructor(url?: string | Session);

参数

url
string | Session

属性详细信息

application

readonly application: Application;

属性值

Application

runtime

readonly runtime: Runtime;

属性值

Runtime

workbook

readonly workbook: Workbook;

属性值

Workbook