OneNote.RequestContext class

扩展

注解

示例

// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await OneNote.run(async (context) => {
    const notebook = context.application.getActiveNotebook();
    // Interact with the OneNote notebook...
});

构造函数

(constructor)(url)

构造 类的新实例RequestContext

属性

application

构造函数详细信息

(constructor)(url)

构造 类的新实例RequestContext

constructor(url?: string);

参数

url

string

属性详细信息

application

readonly application: Application;

属性值