How to Create OneNotePage Object from PageID

Mar 19, 2008 at 1:31 AM
Hi I was wondering how to create a OneNote page from PageID?

getPageContent returns an XDocument. So how do I do XDocument -> OneNotePage?

I think we can use OneNoteSchema.Deserialize() but OneNoteSchema is marked intenal.

What I want to get at is SectionID the page belongs to using OneNotePage.ParentId

Currently I am loading the hierarchy and findind isCurrentlyViewed, but I feel there must be a way to convert ObjectId to Page and then use ParentId?
Developer
Mar 19, 2008 at 4:24 PM
Edited Mar 19, 2008 at 4:25 PM
We need an IsCurrentlyViewed property on OneNoteFolder, OneNoteUnfiledNotes and OneNotePage classes.
And a CurrentlyViewedHierarchy and CurrentlyViewedPage on the OneNoteHierarchy class.
Developer
Mar 19, 2008 at 4:24 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.