Поделиться через


OneNote.RequestContext class

Extends

Комментарии

Примеры

// *.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;

Значение свойства