This document is archived and information here might be outdated.  Recommended version.

IAttachmentManager.AddAttachment Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IA > IAttachmentManager Interface > IAttachmentManager.AddAttachment Method
ArcGIS Developer Help

IAttachmentManager.AddAttachment Method

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
public int AddAttachment (
    int parentObjectID,
    IAttachment Attachment
HRESULT AddAttachment(
  long parentObjectID,
  IAttachment* Attachment
parentObjectID [in]

parentObjectID is a parameter of type long Attachment [in]
Attachment is a parameter of type IAttachment*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IAttachmentManager Interface