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


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

IAttachmentManager2.AddAttachmentByGlobalID Method

Adds an attachment to the object identified by the oid.

[Visual Basic .NET]
Public Function AddAttachmentByGlobalID ( _
    ByVal ParentGlobalID As String, _
    ByVal Attachment As IAttachment _
) As Integer
[C#]
public int AddAttachmentByGlobalID (
    string ParentGlobalID,
    IAttachment Attachment
);
[C++]
HRESULT AddAttachmentByGlobalID(
  BSTR ParentGlobalID,
  IAttachment* Attachment
);
[C++]
Parameters
ParentGlobalID [in]

ParentGlobalID is a parameter of type BSTR Attachment [in]
Attachment is a parameter of type IAttachment*

Product Availability

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

See Also

IAttachmentManager2 Interface