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


IGlobeServer.Find Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GlobeCore)  

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,
  IGlobeServerFindResults** findResults
);
[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 VARIANT_BOOL searchFields [in] searchFields is a parameter of type BSTR findResults [out, retval]
findResults is a parameter of type IGlobeServerFindResults

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