ArcObjects Library Reference (GlobeCore)  

GlobeServerIdentifyResult CoClass

The Globe Server Identify Result coclass provides information about an 'identify result'.

Product Availability

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

Description

GlobeServerIdentifyResult Coclass has an important interface, IGlobeServerIdentifyResult, with properties to returns identify results of a GlobeServer layer. The properties, Name and ObjectID return a results from the Identified layer, where as Shape and Properties return the Geometry of the identified object and a PropertySet.

Interfaces

Interfaces Description
IGlobeServerIdentifyResult Provides access to the Globe Server Identify Result Interface.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
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).
[C#]

//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....

System.Diagnostics.Debug.WriteLine(pglobeServIdRes.Name);

System.Diagnostics.Debug.WriteLine(pglobeServIdRes.ObjectID);

}