コード例 #1
0
        public SPListItemInstance GetItemById(int id)
        {
            var item = m_list.GetItemById(id);

            var instance = new SPListItemInstance(Engine, item);

            return(instance);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void RestrictToListItem(SPListItemInstance listItem)
        {
            if (listItem == null)
            {
                throw new JavaScriptException(this.Engine, "Error", "ListItem must be specified.");
            }

            m_auditQuery.RestrictToListItem(listItem.ListItem);
        }
コード例 #4
0
        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));
        }
コード例 #5
0
 public void SetListItem(SPListItemInstance listItem)
 {
     m_alert.Item = listItem == null
         ? null
         : listItem.ListItem;
 }