ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Licensing Namespace / LicenseInformation Class / GetExpirationDate Method
The license code to check.
Version

GetExpirationDate Method
Gets the license expiration date for the specified license code.
Syntax
public static Nullable<DateTime> GetExpirationDate( 
   LicenseCodes code
)

Parameters

code
The license code to check.

Return Value

A DateTime object indicating the expiration date or null if the specified license code is not available, or the license has already expired.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also