12
Apr
sharepoint 2003: portal listings in code
seems simple enough huh? well i am learning as i go on this 2003 object model stuff and couldn't find anything on this easily. so maybe this will help someone.
code to get a portal listing, portal listings
using Microsoft.SharePoint.Portal; using Microsoft.SharePoint.Portal.SiteData;
Area area = AreaManager.GetArea(PortalContext.Current, new Guid(areaGuid)); foreach (AreaListing listing in area.Listings) { // do stuff }