The arbitrary find method lets custom device applications dynamically build queries based on user input. The Query.DISTINCT property has been added so you can exclude duplicate entries from the result set. This information supersedes the existing information in the Developer Guide for Windows and Windows Mobile.
The arbitrary find method also lets the user specify a desired ordering of the results and object state criteria. A Query class is included in the client object API. The Query class is the single object passed to the arbitrary search methods and consists of search conditions, object/row state filter conditions, and data ordering information.
Query query1 = new Query(); query1.DISTINCT = true;
TestCriteria can be an AttributeTest or a CompositeTest.