Adds attachments to a layer and returns the results.
AddAttachments(int LayerOrTableID, AttachmentData[] AttachmentDataArray)
Parameter |
Description |
LayerOrTableID |
The ID of the layer in which to add the attachments. |
AttachmentDataArray |
The array of attachments 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 AttachmentDataArray parameter. Each contains the AttachmentID (EditResult.OID) assigned to the attachment 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 AttachmentData properties, such as AttachmentID that is part of the AttachmentInfo property, are not editable. If these properties are set, they will be ignored when applied to the service.