vtkrishn.com
Ways to set the Query Mode programatically
The following snippet will be helpful in setting up the mode of the query criteria in programmatic way.