Item Uppfæri eða Item Uppfært Event í SharePoint 2007 kemur tvisvar, ef þurfa stöðva valkostur er virkur í skjal bókasafn.
Ég fann eftirfarandi Lausn frá Microsoft Stuðningur fyrir þetta mál.
Check the value of vti_sourcecontrolcheckedoutby
í BeforeProperties og AfterProperties, if the both values are null then the event is triggered by check in else the event is triggered by other actions.
ef (properties.AfterProperties[“vti_sourcecontrolcheckedoutby”] == null && properties.BeforeProperties[“vti_sourcecontrolcheckedoutby”] != null)
{
//This is when the update event is triggered by check-in.
}
annars
{
//This is triggered by events other than check-in action.
}