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


IGlobeServer.Find Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Interfaces > IG > IGlobeServer Interface > IGlobeServer.Find Method
ArcGIS Developer Help

IGlobeServer.Find Method

Returns a Globe Server Find Result object that contain the given search string.

[Visual Basic .NET]
Public Function Find ( _
    ByVal LayerID As Integer, _
    ByVal searchString As String, _
    ByVal contains As Boolean, _
    ByVal searchFields As String _
) As IGlobeServerFindResults
[C#]
public IGlobeServerFindResults Find (
    int LayerID,
    string searchString,
    bool contains,
    string searchFields
);
[C++]
HRESULT Find(
  long LayerID,
  BSTR searchString,
  VARIANT_BOOL contains,
  BSTR searchFields
);
[C++]
Parameters
LayerID [in]

LayerID is a parameter of type long searchString [in]
searchString is a parameter of type BSTR contains [in]
contains is a parameter of type bool searchFields [in]
searchFields is a parameter of type BSTR

Product Availability

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

Description

Returns GlobeServerFindResults object by taking in the LayerId used to perform Find on , a search string - representing the value to be searched, a boolen defineing wheter to search for exact match or results that contain the defind string, and a string defining which fields to search on the layer. Note passing an empty string For SearchFields will search in all available Fields.

[C#]

The following code snipet shows how to perfrom Find.

{

IGlobeServerFindResults pglobeserverFindRes= new GlobeServerFindResultClass();

pglobeserverFindRes = (IGlobeServerFindResults) pglobeServer.Find(layerID,"Redlands",True,"Name");

IGlobeServerIdentifyResult pglobeServIdRes= new GlobeServerIdentifyResultClass();

}

See Also

IGlobeServer Interface