Get pages count

hello, when we use this code:
m_iPageCount = ((Aspose.Note.Document)m_oDocument).GetChildNodes(Aspose.Note.NodeType.Page).Count;

we receive a warning:
Obsolete(“Use GetChildNodes() method instead.”)

but how we are supposed to write the code to get number of pages of onenote document?

thank you

Hi Valerio,
Thanks for your question.

It is recommended to use type safe generic method GetChildNodes:

m_iPageCount = ((Aspose.Note.Document)m_oDocument).GetChildNodes().Count;


Dmitry Panchenko
Aspose.Note team