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


ILayerResultOptions.ReturnFieldNamesInResults Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILayerResultOptions.ReturnFieldNamesInResults Property

Indicates whether to include field name or alias.

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

Parameters returnFieldName [out, retval] returnFieldName is a parameter of type VARIANT_BOOL returnFieldName [in] returnFieldName is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

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