Пример #1
0
        private void GetItems()
        {
            if (_query == null)
            {
                _query = new SPQuery
                {
                    ViewAttributes = "Scope=\"Recursive\"",
                    RowLimit       = 300
                };
            }

            _items          = _list.GetItems(_query);
            _itemEnumerator = _items.GetEnumerator();
            _query.ListItemCollectionPosition = _items.ListItemCollectionPosition;
            lastBatch = (_query.ListItemCollectionPosition == null);
        }
Пример #2
0
        private void GetItems()
        {
            if (_query == null)
            {
                _query = new SPQuery
                            {
                                ViewAttributes = "Scope=\"Recursive\"",
                                RowLimit = 300
                            };
            }

            _items = _list.GetItems(_query);
            _itemEnumerator = _items.GetEnumerator();
            _query.ListItemCollectionPosition = _items.ListItemCollectionPosition;
            lastBatch = (_query.ListItemCollectionPosition == null);
        }