public override void OnUpdated() { try { FieldManagement <ImageFieldProperties> .SetFieldProperties(this); } catch (Exception) { } }
public override void OnAdded(SPAddFieldOptions op) { //var data = FieldManagement<ImageFieldProperties>.GetFieldProperties(this); //if(string.IsNullOrEmpty(data.WebId)){ // data.WebId = SPContext.Current.Site.RootWeb.ID.ToString(); //} try { FieldManagement <ImageFieldProperties> .SetFieldProperties(this); } catch (Exception ex) { Utility.LogError(ex); } }