This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Interfaces > IG > IGlobeServer Interface > IGlobeServer.Identify Method (ArcObjects .NET 10.5 SDK) |
Returns a Globe Server Identify Result object at the given location.
[Visual Basic .NET] Public Function Identify ( _ ByVal LayerID As Integer, _ ByVal oid As Integer, _ ByVal searchShape As IGeometry _ ) As IGlobeServerIdentifyResults
[C#] public IGlobeServerIdentifyResults Identify ( int LayerID, int oid, IGeometry searchShape );
[C++]
HRESULT Identify(
long LayerID,
long oid,
IGeometry* searchShape,
IGlobeServerIdentifyResults** identifyResults
);
[C++]
Parameters LayerID [in] LayerID is a parameter of type long oid [in] oid is a parameter of type long searchShape [in]
searchShape is a parameter of type IGeometry identifyResults [out, retval]
identifyResults is a parameter of type IGlobeServerIdentifyResults
Returns GlobeServerIdentifyResults object by taking in the LayerId to be identified, an Object ID and the geometry of the identify area, delineated by the geometry object. Note, a value of -1 should be passed as the OID value to return all objects found within the identify area.
{
....
IEnvelope penvelop=pglobeLayerinfo.Extent.Envelope; //simply takes the layer extent as the envelope....
pSearchShape=pglobeLayerinfo.Extent.Envelope;
IGlobeServerIdentifyResults pglobeServIdResults= new GlobeServerIdentifyResultsClass();
IGlobeServerFindResults pglobeserverFindRes= new GlobeServerFindResultClass();
pglobeServIdResults=(IGlobeServerIdentifyResults) pglobeServer.Identify(layerID,-1,pSearchShape);
}