private void GetByObjectType()
        {
            MVQuery q = new MVQuery();

            using (DsmlObjectClass objecttype = this.GetObjectType())
            {
                q.ObjectType = objecttype;
            }

            using (MVObjectCollection mvobjects = SyncServer.GetMVObjects(q)) {
                this.WriteObject(mvobjects, true);
            }
        }
        private void GetByPipeLineQuery()
        {
            MVQuery q = new MVQuery();

            using (DsmlObjectClass objecttype = this.GetObjectType()) {
                q.ObjectType = objecttype;
            }

            if (this.collectedQueries.Count > 0)
            {
                foreach (var item in this.collectedQueries)
                {
                    q.QueryItems.Add(item);
                }
            }

            q.CollationOrder = this.Collation ?? q.CollationOrder;
            using (MVObjectCollection mvobjects = SyncServer.GetMVObjects(q)) {
                this.WriteObject(mvobjects, true);
            }
        }
        private void GetByKey()
        {
            MVAttributeQuery a = new MVAttributeQuery();

            using (DsmlAttribute attr = this.GetAttribute()) {
                a.Attribute = attr;
                a.Operator  = MVSearchFilterOperator.Equals;
                a.Value     = this.Value;
            }

            MVQuery q = new MVQuery();

            using (DsmlObjectClass objecttype = this.GetObjectType()) {
                q.ObjectType = objecttype;
                q.QueryItems.Add(a);
            }

            using (MVObjectCollection mvobjects = SyncServer.GetMVObjects(q))
            {
                this.WriteObject(mvobjects, true);
            }
        }