com.esri.arcgis.geodatabase
Interface IAttachmentManager

All Superinterfaces:
Serializable
All Known Subinterfaces:
IAttachmentManager2
All Known Implementing Classes:
AttachmentManager, IAttachmentManagerProxy

public interface IAttachmentManager
extends Serializable

Product Availability

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


Method Summary
 int addAttachment(int parentObjectID, IAttachment attachment)
          Adds an attachment to the object identified by the oid.
 void deleteAttachment(int attachmentID)
          Deletes the attachment identified with attID.
 void deleteAttachmentsForParent(int parentObjectID)
          Deletes all attachments for the object with oid.
 IEnumAttachment getAttachmentsByAttachmentIDs(ILongArray attachmentIDs, boolean infosOnly)
          Returns the attachments for the attachments with the attachment ids specified in the attIDs argument.
 IEnumAttachment getAttachmentsByParentIDs(ILongArray oids, boolean infosOnly)
          Returns the attachments for the objects with the object ids specified in the oids argument.
 boolean isHasGlobalID()
          Indicates if the attachments have a global object identity field.
 void updateAttachment(IAttachment attachment)
          Updates the attachment.
 

Method Detail

addAttachment

int addAttachment(int parentObjectID,
                  IAttachment attachment)
                  throws IOException,
                         AutomationException
Adds an attachment to the object identified by the oid.

Product Availability

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

Parameters:
parentObjectID - The parentObjectID (in)
attachment - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Returns:
The attachmentID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByParentIDs

IEnumAttachment getAttachmentsByParentIDs(ILongArray oids,
                                          boolean infosOnly)
                                          throws IOException,
                                                 AutomationException
Returns the attachments for the objects with the object ids specified in the oids argument.

Product Availability

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

Parameters:
oids - A reference to a com.esri.arcgis.system.ILongArray (in)
infosOnly - The infosOnly (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumAttachment
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByAttachmentIDs

IEnumAttachment getAttachmentsByAttachmentIDs(ILongArray attachmentIDs,
                                              boolean infosOnly)
                                              throws IOException,
                                                     AutomationException
Returns the attachments for the attachments with the attachment ids specified in the attIDs argument.

Product Availability

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

Parameters:
attachmentIDs - A reference to a com.esri.arcgis.system.ILongArray (in)
infosOnly - The infosOnly (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumAttachment
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateAttachment

void updateAttachment(IAttachment attachment)
                      throws IOException,
                             AutomationException
Updates the attachment.

Product Availability

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

Parameters:
attachment - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttachment

void deleteAttachment(int attachmentID)
                      throws IOException,
                             AutomationException
Deletes the attachment identified with attID.

Product Availability

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

Parameters:
attachmentID - The attachmentID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttachmentsForParent

void deleteAttachmentsForParent(int parentObjectID)
                                throws IOException,
                                       AutomationException
Deletes all attachments for the object with oid.

Product Availability

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

Parameters:
parentObjectID - The parentObjectID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasGlobalID

boolean isHasGlobalID()
                      throws IOException,
                             AutomationException
Indicates if the attachments have a global object identity field.

Product Availability

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

Returns:
The hasGlobalID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.