|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IA > IAttachmentManager2 Interface > IAttachmentManager2.GetAttachmentsByParentGlobalIDs Method (ArcObjects .NET 10.5 SDK) | 
Returns the attachments for the objects with the object ids specified in the oids argument.
[Visual Basic .NET] Public Function GetAttachmentsByParentGlobalIDs ( _ ByVal parentGlobalIDs As IStringArray, _ ByVal infosOnly As Boolean _ ) As IEnumAttachment
[C#] public IEnumAttachment GetAttachmentsByParentGlobalIDs ( IStringArray parentGlobalIDs, bool infosOnly );
[C++]
HRESULT GetAttachmentsByParentGlobalIDs(
  IStringArray* parentGlobalIDs,
  VARIANT_BOOL infosOnly,
  IEnumAttachment** attachments
);
[C++]
Parameters parentGlobalIDs [in]
parentGlobalIDs is a parameter of type IStringArray infosOnly infosOnly is a parameter of type VARIANT_BOOL attachments [out, retval]
attachments is a parameter of type IEnumAttachment