标签:href error tostring other tin iat || poi 修改字段
摘要:Sharepoint在Event中修改字段数据
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在Event中修改字段数据
标签:href error tostring other tin iat || poi 修改字段
原文地址:https://www.cnblogs.com/petewell/p/11516605.html