OutFields.AddRange method ??

1863
1
04-12-2010 02:24 AM
hcgis
by
New Contributor III
I want to implement the spatial query task and i have many questions
-what is the difference between addrange() an add() methods?.
-how to return all fields (specifying the wildcard '*' as the value of this parameter doesn't work)?
-how to use the Field alias names when displaying results in a maptip?

thanks for help
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Difference between AddRange and Add:
    - Add method is adding one field e.g.  : Add("OBJECTID")
    - AddRange is adding a list of fields coming from an enumerable : AddRange(myListOfFields)

Return all fields :
    - should be  'query.OutFields.Add("*")'

Use the Field alias names when displaying results in a maptip :
     - I don't think there is any out of the box maptip control which displays alias names
     - But in the FeatureSet returned by the query, there is FieldAliases property giving a dictionary of <name, alias>. This dictionary could be used to develop your own maptip control.


Dominique
0 Kudos