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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.5 - 200.5 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.5 |