About the Server spatial query server object extension Sample
[C#]
Results.cs
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 } }
[Visual Basic .NET]
Results.vb
Imports Microsoft.VisualBasic Imports System Imports System.Runtime.InteropServices Imports System.EnterpriseServices Namespace SpatialQuerySOE_VBNet ''' <summary> ''' SOE Results container class. ''' </summary> <AutomationProxy(True), ClassInterface(ClassInterfaceType.None), Guid("EC1526DE-97E9-4228-8972-DE50C4A71696")> _ Public Class Results Inherits ServicedComponent Implements SpatialQuerySOE.Interfaces_VBNet.IResults Private m_resultsGraphics As ESRI.ArcGIS.Carto.IGraphicElements Private m_summaryStats As ESRI.ArcGIS.Geodatabase.IRecordSet #Region "SpatialQuerySOE.Interfaces_VBNet.IResults Members" ''' <summary> ''' Graphics representing the geometries of the features intersecting the query area, clipped to the query area ''' </summary> Public Property ResultsGraphics() As ESRI.ArcGIS.Carto.IGraphicElements Implements SpatialQuerySOE.Interfaces_VBNet.IResults.ResultsGraphics Get Return m_resultsGraphics End Get Set(ByVal value As ESRI.ArcGIS.Carto.IGraphicElements) m_resultsGraphics = CType(value, ESRI.ArcGIS.Carto.IGraphicElements) End Set End Property ''' <summary> ''' The area per field value for features within the search area for the field specified ''' in the SOE configuration ''' </summary> Public Property SummaryStatistics() As ESRI.ArcGIS.Geodatabase.IRecordSet Implements SpatialQuerySOE.Interfaces_VBNet.IResults.SummaryStatistics Get Return m_summaryStats End Get Set(ByVal value As ESRI.ArcGIS.Geodatabase.IRecordSet) m_summaryStats = CType(value, ESRI.ArcGIS.Geodatabase.IRecordSet) End Set End Property #End Region End Class End Namespace