ArcGIS Pro 2.8 API Reference Guide
AddAttachment(MapMember,Int64,String) Method

ArcGIS.Desktop.Editing Namespace > EditOperation Class > AddAttachment Method : AddAttachment(MapMember,Int64,String) 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 filesystem path to the file to attach to the feature.
Add an attachment to a row/feature with attachment support.
Syntax
public void AddAttachment( 
   MapMember member,
   long oid,
   string filePath
)
Public Overloads Sub AddAttachment( _
   ByVal member As MapMember, _
   ByVal oid As Long, _
   ByVal filePath As String _
) 

Parameters

member
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.
filePath
The filesystem path to the file to attach to the feature.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EditOperation Class
EditOperation Members
Overload List