ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / UpdateAttachment Method / UpdateAttachment(MapMember,Int64,Int64,String,AttachmentProperties) Method
The MapMember (layer or standalone table) of the row to add an attachment to.
The object identifier of the row to add an attachment to.
The oid of the attachment to remove.
The filesystem path to the file to attach to the row.
Properties provide additional description or context for this attachment.

In This Topic
    UpdateAttachment(MapMember,Int64,Int64,String,AttachmentProperties) Method
    In This Topic
    Update an attachment to a row/feature with attachment support.
    Syntax
    Public Overloads Sub UpdateAttachment( _
       ByVal mapMember As MapMember, _
       ByVal oid As Long, _
       ByVal attachmentOID As Long, _
       ByVal filePath As String, _
       ByVal properties As AttachmentProperties _
    ) 

    Parameters

    mapMember
    The MapMember (layer or standalone table) of the row to add an attachment to.
    oid
    The object identifier of the row to add an attachment to.
    attachmentOID
    The oid of the attachment to remove.
    filePath
    The filesystem path to the file to attach to the row.
    properties
    Properties provide additional description or context for this attachment.
    Remarks
    To indicate that properties have changed but the actual attachment hasn't, pass null as the filepath while providing new properties
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also