How to set field for GPFeatureRecordSetLayer

1970
0
04-19-2016 01:48 PM
JosephKane
New Contributor II

For a view shed geoprocessing Task there is an input parameter "OffsetA" that is in the "Fields" list of a GPFeatureRecordSetLayer,  is there any example of setting this in C#?

So far I have:

var inputPoint = await MyMapView.Editor.RequestPointAsync();

GPFeatureRecordSetLayer gp = new GPFeatureRecordSetLayer("Input_Observation_Point", inputPoint);

thanks,

Parameter: Input_Observation_Point
Data Type: GPFeatureRecordSetLayer
Display Name Input_Observation_Point
Description: The input location from which the viewshed should be calculated.
Direction: esriGPParameterDirectionInput
Default Value:  Geometry Type: esriGeometryPoint
HasZ: false
HasM: false 
Spatial Reference: 54003  (54003)

Fields:
:black_medium_small_square: OBJECTID  ( type: esriFieldTypeOID , alias: OBJECTID ) 
:black_medium_small_square: OffsetA  ( type: esriFieldTypeSmallInteger , alias: OffsetA ) 
Features: None.

0 Kudos
0 Replies