This document is archived and information here might be outdated.  Recommended version.

GlobeServerIdentifyResults Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Classes > G > GlobeServerIdentifyResults Class
ArcGIS Developer Help

GlobeServerIdentifyResultsClass Class

The Globe server identify result collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


GlobeServerIdentifyResults co class allows users to get access to GlobeServerIdentifyResult elements, through its get Element method, or to do an Insert, Remove (and RemoveAll or Count via IGlobeServerIdentifyResults interface respectively.


Interfaces Description
IGlobeServerIdentifyResults Provides access to the Globe server identify result collection.
IPersist (esriSystem)
IPersistStream (esriSystem)
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.
IXMLVersionSupport (esriSystem) Provides access to members that help in serializing an object to different namespaces (versions).

//Do Identify....

private void Identify(IAGSServerConnection pAGSServerConnection) {

//use the connecton object passed to get to the GlobeServerLayer objects...

IAGSEnumServerObjectName pEnumSOName;

pEnumSOName = pAGSServerConnection.ServerObjectNames;

IAGSServerObjectName pSOName;

pSOName = pEnumSOName.Next();


while (pSOName !=null)



if(pSOName.Type=="GlobeServer") break; //break on the first found available globeSevrer object...

pSOName = pEnumSOName.Next();


//create a globeserver, globeserverlayer objects ...

IGlobeServerLayer pglobeSevrerLayer=new GlobeServerLayerClass();

//get the severobject from the GlobeSeverLayer...

int layerid=0;


IGlobeServer pglobeServer=new GlobeServerClass();

pglobeServer= pglobeSevrerLayer.GlobeServer;



IGlobeLayerInfos ipLayerInfos;

int parentID=0; //will force return for all layers...

ipLayerInfos= pglobeServer.get_LayerInfos(parentID);

IGlobeLayerInfo pglobeLayerinfo=new GlobeLayerInfoClass();

int nLayers;


bool visible;

int layerID=0;

for (int i=0; i<nLayers;++i)





if (visible==true)

break; //exit when the frist visibile layer is found...


//do identify...

IGeometry pSearchShape= new EnvelopeClass();

//need to set pSearchShape to a valid geometry object for identifying features

//rasters work ok even if a null geometry object is passed...

IEnvelope penvelop=pglobeLayerinfo.Extent.Envelope; //simply takes the layer extent as the envelope....

pSearchShape = pglobeLayerinfo.Extent.Envelope;

IGlobeServerIdentifyResults pglobeServIdResults= new GlobeServerIdentifyResultsClass();

pglobeServIdResults = (IGlobeServerIdentifyResults) pglobeServer.Identify(layerID,-1,pSearchShape);

IGlobeServerIdentifyResult pglobeServIdRes= new GlobeServerIdentifyResultClass();

int ServerRes=0;

pglobeServIdRes = pglobeServIdResults.get_Element(ServerRes);

//output the identify resutls....