returnLayerAttachmentOption

Which feature layers will include attachments when being taken offline. Attachments can be included with none of the layers, all of the layers, read only layers or editable layers. This method should be used in conjunction with GenerateOfflineMapParameters.attachmentSyncDirection to control how the attachments are synced. For offline maps, a feature layer is considered to be editable if the feature service has capabilities that include any of create, update or delete. A read-only layer is one that supports sync, but does not have any of create, update or delete capability. Service capabilities are accessible from service infos see ArcGISFeatureServiceInfo.featureServiceCapabilities or ArcGISFeatureLayerInfo.capabilities.

This property works in conjunction with GenerateOfflineMapParameters.attachmentSyncDirection and in some cases may override the value returned by GenerateOfflineMapParameters.attachmentSyncDirection. The table below shows the valid combinations of values for layer attachment options and attachment sync direction. The notes column explains where the behavior for a given layer may differ from the values set for these properties.

ReturnLayerAttachmentOption.NoneAttachmentSyncDirection.None
AttachmentSyncDirection.Upload
ReturnLayerAttachmentOption.AllLayersAttachmentSyncDirection.Upload
AttachmentSyncDirection.Bidirectional
ReturnLayerAttachmentOption.ReadOnlyLayersAttachmentSyncDirection.NoneLayers with attachments will treat this as AttachmentSyncDirection.Bidirectional
AttachmentSyncDirection.Upload
AttachmentSyncDirection.BidirectionalLayers without attachments will treat this as AttachmentSyncDirection.None
ReturnLayerAttachmentOption.EditableLayersAttachmentSyncDirection.NoneLayers with attachments will treat this as AttachmentSyncDirection.Bidirectional
AttachmentSyncDirection.Upload
AttachmentSyncDirection.BidirectionalLayers without attachments will treat this as AttachmentSyncDirection.None

If GenerateOfflineMapParameters is used in conjunction with GenerateOfflineMapParameterOverrides this property is superseded.

Since

200.1.0