Visual Basic (Declaration) | |
---|---|
Public Class FeatureAttachmentSyncAgent Inherits SyncAgent |
C# | |
---|---|
public class FeatureAttachmentSyncAgent : SyncAgent |
If your MobileService has attachments, the attachment files can be synchronized automatically with the features, using a FeatureSyncAgent's default properties.
You can limit the attachments to synchronize with the AttachmentsToDownload/Upload, DownloadContentType, MaxAttachmentDownloadSize, and SynchronizationDirection properties.
Note for uploading attachments: Prior to uploading an attachment to an ArcGIS Server, you first need to create an Attachment object and add it to the feature to which it belongs using an AttachmentManager.
ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.SyncAgent
ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureAttachmentSyncAgent
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family