Adds features or objects to a layer or table and returns the results.
Add(int LayerOrTableID, DataObject[] DataObjectArray)
Parameter |
Description |
LayerOrTableID |
The ID of the layer or table where features or objects are to be added. |
DataObjectArray |
The array of features or objects to be added. |
Return Value
An array of EditResult objects whose order is consistent with the order of the features or objects in the input DataObjectArray parameter. Each contains the ObjectID (EditResult.OID) and GlobalID (EditResult.GlobalID) assigned to the feature or object when it was added. If adding of a feature or object fails, the returned object will have the error code (EditResult.Code) and description (EditResult.Description).
Remarks
Some DataObject properties, such as ObjectID and GlobalID are not editable. If these properties are set, they will be ignored when applied to the service.