Feature Service UpdateAttachments method

Updates attachments from a layer.

 

UpdateAttachments(int LayerOrTableID, AttachmentData[] AttachmentDataArray)

 

Parameter

Description

LayerOrTableID

ID of the layer or table in which to update attachments.

AttachmentDataArray

An array of AttachmentData objects to update.

 

Return Value

 

This method returns an array of EditResult objects whose order is consistent with the order of the features or objects in the input AttachmentDataArray parameter. Each object has the ObjectID and GlobalID assigned to the feature or object upon adding it to the service. If adding of a feature or object fails (EditResult.Succeeded is false), the returned object will have the error code (EditResult.Code) and description (EditResult.Description).

 

Remarks

 

Some AttachmentData properties, such as AttachmentID are not editable. If these properties are set, they will be ignored when applied to the service.