ArcGIS Pro 3.1 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 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 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also