Changes for release 22.214.171.124
- The CAML class now includes a ViewFields element which expects a list of CAML.FieldRef elements
- Excluded the <XML/> tag from the generated query to avoid problems with SPSiteDataQuery
- Source Code and Documentation updated to reflect changes
Obfuscation has been removed
Pre-release versions were obfuscated, which caused the static string conversion methods to be hidden. This restriction has now been removed.
Default constructor added to CamlQuery class
Prior versions assumed that query evaluation would occur during object instantiation. Providing a default constructor allows derived classes to delay the query evaluation until after other properties have been set. The overloaded constructors still accept string parameters to specify the default query or view fields list, which are assigned as the default values. Derived classes may then override the property getter/setter methods as required.
GridView Data Binding
The CamlQuery class now supports binding directly to SPGridView objects, which greatly simplifies writing web parts that display query results. A number of different overloads are provided to support binding to SPList, SPWeb and SPSite objects.