CSC510232. Avoid enumerating all PublishingPage objects.

Description

Here are methods GetPublishingPages() and GetPublishingPages(uint rowLimit). You can have follow problems eith its usage:
  1. performance degradation
  2. it returns item from the only root folders - if you have folders, you don't get anything inside folders

Resolution

It might be better to use GetPublishingPages(SPQuery query) or GetPublishingPages(string camlQuery) methods instead

Links

  1. GetPublishingPages()
  2. GetPublishingPages(string camlQuery)
  3. GetPublishingPages(uint rowLimit)

Last edited Jun 26, 2014 at 9:39 AM by dvd73, version 6

Comments

No comments yet.