SPlist如何取得SPView中记录

using(SPSite site=new SPSite(siteurl))

{

  using(SPWeb web=site.OpenWeb())

  {

    SPList list=web.Lists[listname];

    SPView spview= list.Views[viewname];

    foreach(SPListItem listitem in list.GetItems(spview))

    {

      ......

    }

  }

}

你可能感兴趣的:(plist)