ArcGIS Pro 2.7 API Reference Guide
GetExpirationDate Method

ArcGIS.Core.Licensing Namespace > LicenseInformation Class : GetExpirationDate Method
The license code to check.
Call to obtain the license expiration date for the specified license code.
Syntax
public static Nullable<DateTime> GetExpirationDate( 
   LicenseCodes code
)
Public Shared Function GetExpirationDate( _
   ByVal code As LicenseCodes _
) As Nullable(Of Date)

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 10, Windows 8.1

See Also

Reference

LicenseInformation Class
LicenseInformation Members