Edit

Share via


OneNote.RequestContext class

Extends

Remarks

Examples

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

Constructors

(constructor)(url)

Constructs a new instance of the RequestContext class

Properties

application

Constructor Details

(constructor)(url)

Constructs a new instance of the RequestContext class

constructor(url?: string);

Parameters

url

string

Property Details

application

readonly application: Application;

Property Value