In some situations, you may wish to prevent a layer from being taken offline even though it is supported. For example, by continuing to reference the live online service for a FeatureLayer, you can benefit from the most up-to-date information. You can choose to keep layers from the map's operational layers or basemap layers collections online.
To make the offline map continue to reference an online layer add it to the Layer to this list, you indicate that the layer will not be taken offline but will instead continue to reference the online service. Be aware that the resulting offline map will require a network connection and may also require authentication.collection. By adding a
Note that if a Layer is included in this collection it will not be taken offline - you should update the relevant parameters to remove the details pertaining to that layer:
If a feature service contains many tables in the web map, you can choose to keep specific layers online by adding them to the GenerateGeodatabaseParameters to remove the specific layers. Any remaining feature layers or stand-alone tables that you wish to take offline can be configured using the LayerOptions for the service in GenerateGeodatabaseParameters.collection and updating the