ArcObjects Library Reference (GeoDatabase)  

IAttachmentManager.AddAttachment Method

Adds an attachment to the object identified by the oid.

[Visual Basic .NET]
Public Function AddAttachment ( _
    ByVal OID As Integer, _
    ByVal att As IAttachment _
) As Integer
[C#]
public int AddAttachment (
    int OID,
    IAttachment att
);
[C++]
HRESULT AddAttachment(
  long OID,
  IAttachment* att,
  long* attID
);
[C++]

Parameters

OID [in]   OID is a parameter of type long att [in]

  att is a parameter of type IAttachment

attID [out, retval]   attID is a parameter of type long

Product Availability

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

See Also

IAttachmentManager Interface