com.esri.arcgis.geodatabase
Interface IAttachmentManager2

All Superinterfaces:
IAttachmentManager, Serializable

public interface IAttachmentManager2
extends IAttachmentManager, Serializable

Product Availability

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


Method Summary
 int addAttachmentByGlobalID(String parentGlobalID, IAttachment attachment)
          Adds an attachment to the object identified by the oid.
 void deleteAttachmentByGlobalID(String globalID)
          Deletes the attachment identified with attID.
 void deleteAttachmentsForParentByGlobalID(String parentGlobalID)
          Deletes all attachments for the object with oid.
 IEnumAttachment getAttachmentsByAttachmentGlobalIDs(IStringArray attachmentGlobalIDs, boolean infosOnly)
          Returns the attachments for the attachments with the attachment ids specified in the attIDs argument.
 IEnumAttachment getAttachmentsByParentGlobalIDs(IStringArray parentGlobalIDs, boolean infosOnly)
          Returns the attachments for the objects with the object ids specified in the oids argument.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IAttachmentManager
addAttachment, deleteAttachment, deleteAttachmentsForParent, getAttachmentsByAttachmentIDs, getAttachmentsByParentIDs, isHasGlobalID, updateAttachment
 

Method Detail

addAttachmentByGlobalID

int addAttachmentByGlobalID(String parentGlobalID,
                            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:
parentGlobalID - The parentGlobalID (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.

getAttachmentsByParentGlobalIDs

IEnumAttachment getAttachmentsByParentGlobalIDs(IStringArray parentGlobalIDs,
                                                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:
parentGlobalIDs - A reference to a com.esri.arcgis.system.IStringArray (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.

getAttachmentsByAttachmentGlobalIDs

IEnumAttachment getAttachmentsByAttachmentGlobalIDs(IStringArray attachmentGlobalIDs,
                                                    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:
attachmentGlobalIDs - A reference to a com.esri.arcgis.system.IStringArray (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.

deleteAttachmentByGlobalID

void deleteAttachmentByGlobalID(String globalID)
                                throws IOException,
                                       AutomationException
Deletes the attachment identified with attID.

Product Availability

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

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

deleteAttachmentsForParentByGlobalID

void deleteAttachmentsForParentByGlobalID(String parentGlobalID)
                                          throws IOException,
                                                 AutomationException
Deletes all attachments for the object with oid.

Product Availability

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

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