I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library event handlers? If yes, how?
Pseudo code
SPListItem document;
document = this.Web.Lists["Document Library Title"].GetItemById(x);
...
if (document["DocState"].ToString() == "Reviewed")
{
// preventDocumentContentEditing!
// preventDocumentPropertiesUpdating!
}
Thanks!