This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IA > IAttachmentManager Interface > IAttachmentManager.AddAttachment Method (ArcObjects .NET 10.4 SDK) |
Adds an attachment to the object identified by the oid.
[Visual Basic .NET] Public Function AddAttachment ( _ ByVal parentObjectID As Integer, _ ByVal Attachment As IAttachment _ ) As Integer
[C#] public int AddAttachment ( int parentObjectID, IAttachment Attachment );
[C++]
HRESULT AddAttachment(
long parentObjectID,
IAttachment* Attachment,
long* AttachmentID
);
[C++]
Parameters parentObjectID [in] parentObjectID is a parameter of type long Attachment [in]
Attachment is a parameter of type IAttachment AttachmentID [out, retval] AttachmentID is a parameter of type long