public SPListItemInstance GetItemById(int id) { var item = m_list.GetItemById(id); var instance = new SPListItemInstance(Engine, item); return(instance); }
public void ParseAndSetValue(SPListItemInstance listItem, string value) { if (listItem == null) { throw new JavaScriptException(this.Engine, "Error", "A list item must be specified as the first parameter."); } m_field.ParseAndSetValue(listItem.ListItem, value); }
public void RestrictToListItem(SPListItemInstance listItem) { if (listItem == null) { throw new JavaScriptException(this.Engine, "Error", "ListItem must be specified."); } m_auditQuery.RestrictToListItem(listItem.ListItem); }
public SPListItemInstance CreateNewDiscussionReply(SPListItemInstance parent) { if (parent == null) { throw new JavaScriptException(this.Engine, "Error", "A listitem must be specified as the first parameter."); } var result = SPUtility.CreateNewDiscussionReply(parent.ListItem); return(result == null ? null : new SPListItemInstance(this.Engine, result)); }
public void SetListItem(SPListItemInstance listItem) { m_alert.Item = listItem == null ? null : listItem.ListItem; }