Updates features or objects in a layer or table using the input array.
Update(int LayerorTableID, DataObject[] DataObjectArray)
Parameter |
Description |
LayerorTableID |
The ID of the layer or table in which to update features or objects. |
DataObjectArray |
The features or objects to be updated in the service. |
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 updating a feature or object fails (EditResult.Succeeded is false), the returned object will have the error code (EditResult.Code) and description (EditResult.Description).
Remarks
If an input feature or object only has some properties, only those will be updated. 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.