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

ILayerResultOptions.ReturnFieldNamesInResults Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerResultOptions Interface > ILayerResultOptions.ReturnFieldNamesInResults Property
ArcGIS Developer Help

ILayerResultOptions.ReturnFieldNamesInResults Property

Indicates whether to include field name or alias.

[Visual Basic .NET]
Public Property ReturnFieldNamesInResults As Boolean
public bool ReturnFieldNamesInResults {get; set;}
HRESULT get_ReturnFieldNamesInResults(
  VARIANT_BOOL returnFieldName
HRESULT put_ReturnFieldNamesInResults(
  Boolean* returnFieldName
returnFieldName [in]

returnFieldName is a parameter of type bool returnFieldName [out, retval]
returnFieldName is a parameter of type bool*

Product Availability

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


ReturnFieldNamesInResults is only applied to Find and Identify functions. It is ignored by other query function such as QueryData, QueryFeatureData2, QueryHyperLinks etc. The default value for ReturnFieldNamesInResults is False � that means if it is not set explicitly, field aliases set in the source map document will be honored in Find and Identify results. For example, if a field named �CNTRY_NM� has an alias set to �Country Name� in the original map document, a Find or Identify result will display �Country Name�. When ReturnFieldNamesInResult set to True, the field name �CNTRY_NM� will be returned instead of the alias.

This property is ignored by Identify and Find functions when querying a layer that does not implement the IFeatureLayer interface (i.e. Raster layer)

See Also

ILayerResultOptions Interface