c# - Sharepoint 2010. Api. How to get field history? -


i have splistitem , text field. need in code versions of field ex:

  1. version 1 "hello rorld"
  2. version 2 "hello world"
  3. version 3 "new application"

any examples how that?

try this:

foreach (splistitemversion version in item.versions) {     console.writeline(string.format(         "{0}. version {0} \"{1}\"",          version.versionid, version["this field"])); } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -