c# - Sharepoint 2010. Api. How to get field history? -
i have splistitem , text field. need in code versions of field ex:
- version 1 "hello rorld"
- version 2 "hello world"
- 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
Post a Comment