ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / AddAttachment Method / AddAttachment(RowToken,String,AttachmentProperties) Method
The RowToken representing the future row to add the attachment to.
The filesystem path to the file to attach to the row.
Properties provide additional description or context for this attachment.

In This Topic
    AddAttachment(RowToken,String,AttachmentProperties) Method
    In This Topic
    Add an attachment to a row with attachment support.
    Syntax
    Public Overloads Sub AddAttachment( _
       ByVal token As RowToken, _
       ByVal filePath As String, _
       ByVal properties As AttachmentProperties _
    ) 
    public void AddAttachment( 
       RowToken token,
       string filePath,
       AttachmentProperties properties
    )

    Parameters

    token
    The RowToken representing the future row to add the attachment to.
    filePath
    The filesystem path to the file to attach to the row.
    properties
    Properties provide additional description or context for this attachment.
    Remarks
    This method is used to add an attachment to a future row returned from the EditOperation.Create method. The RowToken allows a row to be created and the attachment added within the same EditOperation, without the need for chaining.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also