Select to view content in your preferred language

Field Type in a Rest service

706
4
05-14-2010 06:06 AM
João_VictorCoelho
Emerging Contributor
Hi All ,

I was wondering if there is a way to get the field type in a rest service.For example , i wanna know if the field is an objectID or not.

I Know a can get the .Net Framework type (like Int32,String) , but I need the esri type : esriFieldTypeOID , esriFieldTypeGeometry.

Thanks in advance.
0 Kudos
4 Replies
dotMorten_esri
Esri Notable Contributor
If you are using the FeatureLayer with the v2.0 assemblies, you will find this information on myLayer.LayerInfo.Fields
0 Kudos
João_VictorCoelho
Emerging Contributor
Thanks for the Reply Morten , we are still using the V1.2 in the project , one more reason to migrate.
0 Kudos
AvronPolakow
Occasional Contributor
v2.0 is still only advertised as beta.

When will there be a final release?
0 Kudos
dotMorten_esri
Esri Notable Contributor
Somewhere around the User Conference.
0 Kudos