要約:Sharepointのは、イベント内のフィールドのデータを変更
public override void ItemUpdating(SPItemEventProperties properties) {
try {
string newFieldValue = GetNewFieldValue();
object oldFieldValue = properties.AfterProperties[COLUMN_NAME];
if (oldFieldValue == null || oldFieldValue.ToString() != newFieldValue) {
properties.AfterProperties[COLUMN_NAME] = newFieldValue;
}
} catch {
//Log the error, or take another appropriate action.
} finally {
base.ItemUpdating(properties);
}
}
オリジナル:ビッグボックス Sharepointのは、イベント内のフィールドのデータを変更します