addAttachmentWithFile method
Adds a new attachment, with keywords, to this feature from the specified file.
One of the following error codes may be set:
- ArcGISExceptionType.commonInvalidCall if the feature layer doesn't support attachments.
- ArcGISExceptionType.commonFileNotFound if the file does not exist.
- ArcGISExceptionType.commonInvalidArgument if the feature table does not support keywords.
Parameters:
name— The name of the Attachment.contentType— The type of content.fileUri— Path to a file that will be used for the attachment's content.keywords— Attachment keywords. The attachment keywords can be accessed using Attachment.keywords.
Return Value: The new Attachment that was added to this feature.