Server spatial query COM utility
VegCOMCSharp\VegResults.cs
// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 



using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.EnterpriseServices;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geodatabase;

[GuidAttribute("AAA3B706-A00B-44b7-A3D8-AA623BE99BC9")]
public interface IVegResults
{
    IGraphicElements ResGraphics
    {
        get;
        set;
    }
    IRecordSet Stats
    {
        get;
        set;
    }
}

namespace VegCOMCSharp
{
    [AutomationProxy(true), ClassInterface(ClassInterfaceType.None), GuidAttribute("515F8A28-28E6-4a21-A15E-B298ED158B81")]
    public class VegResults : ServicedComponent, IVegResults
    {
        private IGraphicElements m_resGraphics;
        private IRecordSet m_resStats;
        public IGraphicElements ResGraphics
        {
            get { return m_resGraphics; }
            set { m_resGraphics = value as IGraphicElements; }
        }

        public IRecordSet Stats
        {
            get { return m_resStats; }
            set { m_resStats = value as IRecordSet; }
        }
    }
}