Feature service QueryAttachmentData method

Queries and returns attachments of the input attachment identifier array.

AttachmentDataArray QueryAttacmentData(int LayerOrTableID, int[] IDsOfAttachmentsToQuery, esriTransportType TransportType, string VersionName)

Parameter

Description

LayerOrTableID

Identifier of the layer or table.

IDsOfAttachmentsToQuery

An array of AttachmenIDs.

TransportType

Describes the way the attachments will be return based on the esriTransportType constant. (URL – "esriTransportTypeUrl", Embedded &endash "esriTransportTypeEmbedded")

VersionName

Geodatabase version to query. This parameter only applies to feature services that expose geodatabases. If not specified, queries are made against the published map's version.

Return Value

This method returns an array of attachments (AttachmentData []).

Remarks

Once you have the list of identifiers for attachments (AttachmentIDs) from the QueryAttachmentInfos method you can use the this method to access the attachments.

You can specify the specific the type of transport method that you would like the attachments to be returned with. Feature services support two transportation types:

10/23/2013