When I execute a CAML Query in a list event handler, the query开发者_如何学Go executes against the current view for the list. I have certain fields that I need to query regardless of the view - how do I get the "allitems" view or equivalent for the actual list.
Look for SPList.DefaultView
There you can get the ViewFields property and see what fields are being returned.
精彩评论