Show / Hide Table of Contents

Property Expiration

Expiration

Gets the expiration details for this mobile map package, if provided.

Declaration
public Expiration Expiration { get; }
Property Value
Type Description
Expiration

The expiration details for this mobile map package, if provided.

Remarks

Expiration details provide:

  • The package’s expiration date and time.
  • Whether the maps can be accessed after expiration.
  • Any messages relevant for the user.

These expiration details can be specified when the author creates a mobile map package using ArcGIS Pro (from version 2.4). This requires the ArcGIS Pro Publisher Extension. Mobile map packages created with the OfflineMapTask do not support expiration.

By publishing a package with expiration details, the author can control the experience an end-user has when they try to access information that is no longer valid. For example, for time limited data (such as major sporting events), the author can ensure that the data cannot be accessed after the expiry date.

During package loading, this API will determine whether the mobile map package was authored with expiration. If so, then this property will be populated.

If the package has expired and was authored as PreventExpiredAccess, loading will fail and you will not be able to access the maps.The expiration details will be accessible for you to examine and/or communicate to the user.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.5 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.5 - 200.7
Xamarin.Android100.5 - 100.15
Xamarin.iOS100.5 - 100.15
UWP100.5 - 200.7
In This Article
Back to top Copyright © 2022 Esri.