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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -