section id changes after password protection

X

xiao

Hi All,
I noticed that section ID changes after I protect a section using a password.
If this is the expected result, how can we keep track of each section?
Section name is not reliable either because user can change it too.
Any ideas?
thx.
 
I

Ilya Koulchin

xiao said:
I noticed that section ID changes after I protect a section using a password.
If this is the expected result, how can we keep track of each section?

This is expected behavior. I'm guessing you're getting at the section ID
through the OneNote extensibility API? If so, then you can try using the
metadata properties, which can be set on sections. That way you can
assign your own ID to the section which will not change when it is
password protected. Note that if you do so, if the user copies the
section or it is somehow duplicated, the copy will have the same
metadata as well.
 

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