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

In This Topic
    GetExpirationDate Method
    In This Topic
    Gets the license expiration date for the specified license code.
    Syntax
    Public Shared Function GetExpirationDate( _
       ByVal code As LicenseCodes _
    ) As Nullable(Of Date)
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also