ArcGIS Pro 2.7 API Reference Guide
UpdateAttachment(RowToken,Int64,String) Method

ArcGIS.Desktop.Editing Namespace > EditOperation Class > UpdateAttachment Method : UpdateAttachment(RowToken,Int64,String) Method
The RowToken representing the future feature to add the attachment to.
The oid of the attachment to remove.
The filesystem path to the file to attach to the feature.
Update an attachment to a row/feature with attachment support.
Syntax
public void UpdateAttachment( 
   RowToken token,
   long attachmentOID,
   string filePath
)
Public Overloads Sub UpdateAttachment( _
   ByVal token As RowToken, _
   ByVal attachmentOID As Long, _
   ByVal filePath As String _
) 

Parameters

token
The RowToken representing the future feature to add the attachment to.
attachmentOID
The oid of the attachment to remove.
filePath
The filesystem path to the file to attach to the feature.
Remarks
This method is used to update an attachment to a future feature returned from the EditOperation.CreateEx method. The RowToken allows feature to be created and the attachment added within the same EditOperation, without the need for chaining.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EditOperation Class
EditOperation Members
Overload List