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


IMapServer3.QueryAttachmentData Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServer3.QueryAttachmentData Method

Returns the attachment data for the given features/ rows.

[Visual Basic .NET]
Public Function QueryAttachmentData ( _
    ByVal MapName As String, _
    ByVal TableID As Integer, _
    ByVal attachmentIDs As ILongArray, _
    ByVal TransportType As esriTransportType _
) As IAttachmentDataArray
[C#]
public IAttachmentDataArray QueryAttachmentData (
    string MapName,
    int TableID,
    ILongArray attachmentIDs,
    esriTransportType TransportType
);
[C++]
HRESULT QueryAttachmentData(
  BSTR MapName,
  long TableID,
  ILongArray* attachmentIDs,
  esriTransportType TransportType,
  IAttachmentDataArray** attachmentDataArray
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR TableID [in] TableID is a parameter of type long attachmentIDs [in]
attachmentIDs is a parameter of type ILongArray TransportType [in]
TransportType is a parameter of type esriTransportType attachmentDataArray [out, retval]
attachmentDataArray is a parameter of type IAttachmentDataArray

Product Availability

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

Remarks

An array of objects that support IAttachmentData. Each AttachmentData object contains AttachmentInfo to relate the data back to the feature/row that this data is attached to, the attachment data and the url to the data.

Use QueryAttachmentInfos to get AttachmentIDs for all attached multimedia data attached to a feature/row.

See Also

IMapServer3 Interface