Thursday, March 1, 2012

To get all the versions for Multiline text field

allComments = "";
foreach (SPListItemVersion versionListItem in item.Versions)
{
        if (versionListItem["Comments"] != null){
               allComments += versionListItem["Comments"].ToString();
        }
}

No comments:

Post a Comment