Property OnlineTables
OnlineTables
Gets a mutable list of tables that will not be taken offline and will continue to reference online services.
Declaration
public IList<ServiceFeatureTable> OnlineTables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<ServiceFeatureTable> | A mutable list of tables that will not be taken offline and will continue to reference online services. |
Remarks
In some situations, you may wish to prevent a non-spatial table from being taken offline even though it is supported. For example, by continuing to reference the live online ServiceFeatureTable, you can benefit from the most up-to-date information.
To make the offline map continue to reference an online table, you add it to the OnlineTables collection. By adding a ServiceFeatureTable to this list, you indicate that the table will not be taken offline but will instead continue to reference the online source. Be aware that the resulting offline map will require a network connection and may require authentication.
Note that if a ServiceFeatureTable is included in this collection it will not be taken offline - you should update the GenerateGeodatabaseParameters to remove that table.
If a feature service contains many tables in the web map, you can choose to keep specific tables online by adding them to the OnlineTables collection. Any remaining tables which you wish to take offline can be configured using the service's LayerOptions in the GenerateGeodatabaseParameters.
When you create a GenerateOfflineMapParameterOverrides object, this collection will be populated according to the OnlineOnlyServicesOption setting in the original parameters.
- If you set OnlineOnlyServicesOption to Exclude then this collection will be empty.
- If you set OnlineOnlyServicesOption to Include then this collection will contain each online-only ServiceFeatureTable in the web map. For example, tables that cannot be taken offline because they are not sync-enabled.
- If you set OnlineOnlyServicesOption to UseAuthoredSettings, then this collection will contain each ServiceFeatureTable that the web map author selected to remain online.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |