API Development Example Angst

D

dsudbury

This is a "new person question"...

I am developing a simple OneNote API and the example found here:

http://msdn.microsoft.com/en-ca/library/ms788684.aspx

Scroll down until you find the line beginning "The following Visual C#
sample shows a complete console application ..."

When I copy this code:

// Update the section with the new title
onApplication.UpdateHierarchy(xmlNode.OuterXml,
System.DateTime.MinValue);


I get this error:

No Overload for method "UpdateHierarchy" takes two arguments.


So I think I "SEE" two arguments... What am I not SEEING?

Any help most welcome!

David



I get a
 
I

Ilya Koulchin

dsudbury said:
I am developing a simple OneNote API and the example found here:

http://msdn.microsoft.com/en-ca/library/ms788684.aspx

Scroll down until you find the line beginning "The following Visual C#
sample shows a complete console application ..."

When I copy this code:

// Update the section with the new title
onApplication.UpdateHierarchy(xmlNode.OuterXml,
System.DateTime.MinValue);


I get this error:

No Overload for method "UpdateHierarchy" takes two arguments.

The docs are wrong. UpdateHierarchy takes a single argument - just the
XML to update.
The similar UpdatePageContent does take a second optional argument though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top