Click or drag to resize

GenerateGeodatabaseParametersAttachmentSyncDirection Property

Gets or sets the direction for attachments to be synchronized.

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public AttachmentSyncDirection AttachmentSyncDirection { get; set; }

Property Value

Type: AttachmentSyncDirection

This parameter is available when the SupportsAttachmentsSyncDirection returns true. This parameter defines how attachments will be synced and is only applicable if the feature service has attachments.

  • Bidirectional Attachment edits can be both uploaded from the client and downloaded from the service when syncing.
  • Upload Attachment edits can only be uploaded from the client when syncing. This is useful in cases where the data collector does not want to consume space with attachments from the service, but does need to collect new attachments.
  • None Attachment edits are never synced from either the client or the server.

When ReturnAttachments is set to True, you can set AttachmentSyncDirection to either Bidirectional (default) or Upload. In this case, create replica includes attachments from the service.
When ReturnAttachments is set to False, you can set AttachmentSyncDirection to either Upload or None (default). In this case, the geodatabase does not include attachments from the service.

Attachment sync direction is set during the GenerateGeodatabase(GenerateGeodatabaseParameters, String) operation and cannot be overridden during SyncGeodatabase(SyncGeodatabaseParameters, Geodatabase).

See Also