Server spatial query server object extension
SpatialQuerySOE_CSharp\Results.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.Runtime.InteropServices;
using System.EnterpriseServices;

namespace SpatialQuerySOE
{
    /// <summary>
    /// SOE Results container class.
    /// </summary>
    [AutomationProxy(true), ClassInterface(ClassInterfaceType.None), GuidAttribute("C9FB0536-D1D6-455d-897D-8AD26849C79A")]
    public class Results : ServicedComponent, SpatialQuerySOE.Interfaces.IResults
  {
    private ESRI.ArcGIS.Carto.IGraphicElements m_resultsGraphics; 
    private ESRI.ArcGIS.Geodatabase.IRecordSet m_summaryStats;

    #region SpatialQuerySOE.Interfaces.IResults Members

        /// <summary>
        /// Graphics representing the geometries of the features intersecting the query area, clipped to the query area
        /// </summary>
        public ESRI.ArcGIS.Carto.IGraphicElements ResultsGraphics
    {
      get{ return m_resultsGraphics;  }
      set{ m_resultsGraphics = (ESRI.ArcGIS.Carto.IGraphicElements) value; }
    }

        /// <summary>
        /// The area per field value for features within the search area for the field specified 
        /// in the SOE configuration
        /// </summary>
        public ESRI.ArcGIS.Geodatabase.IRecordSet SummaryStatistics
    {
      get{ return m_summaryStats; }
      set{ m_summaryStats = (ESRI.ArcGIS.Geodatabase.IRecordSet) value; }
    }

    #endregion
  }
}