GPRecordSet

Base Type: GPValue

A geoprocessing class for a record set.

Property

Type

Description

ExceededTransferLimit

bool

The has transfer limit been reached flag.

ExceededTransferLimitSpecified

bool

Indicates if the ExceededTransferLimit is specified.

OIDFieldName

string

The OID field name.

RecordSet

RecordSet

The RecordSet.

Examples

C#

GPToolInfo viewshedToolInfo = gpserver.GetToolInfo("Viewshed");

//create the point for the viewshed tool from the default schema

GPParameterInfo gpPI = viewshedToolInfo.ParameterInfo[0];

//Use the default schema

GPFeatureRecordSetLayer inPoint = (GPFeatureRecordSetLayer)gpPI.Value;

RecordSet inPointRS = inPoint.RecordSet;

Record[] records = new Record[1];

Record rec = new Record();

rec.Values = new object[3];

//id field

rec.Values[0] = 0;

//shape field

PointN p = new PointN();

p.X = -13100000.0;

p.Y = 4200000.0;

rec.Values[1] = p;

//offset field

rec.Values[2] = 70;

//add the record to the set of records.

records[0] = rec;

inPointRS.Records = records;

10/23/2013