///<summary>Adds a class query to the request message. A QB connection must be open before calling this method. Requires connection with version 8.0</summary> private static void QueryListOfClasses() { if (!ConnectionOpen) { return; } //Build the class query add append it to the request message. IClassQuery ClassQueryRq = RequestMsgSet.AppendClassQueryRq(); //Filters ClassQueryRq.ORListQuery.ListFilter.ActiveStatus.SetValue(ENActiveStatus.asActiveOnly); }