GetLicenseExpirationDate

Top  Previous  Next

This function returns the date, when license will be expired

 

public static DateTime IntelliProtector.GetLicenseExpirationDate();

 

Parameters

 

 No parameters.

 

Return value

 

 Returns DateTime.MinValue if the software is not registered or license code has no expiration date.

 Returns date and time when license code will be expired.

 

Requirements

 

 file: IntelliProtector.cs

 namespace: IntelliProtectorService;

 

Example

 

public void ShowLicenseExpirationDate()

{

 DateTime licenseExpirationDate = IntelliProtector.GetLicenseExpirationDate();

 if (licenseExpirationDate == DateTime.MinValue)

         MessageBox.Show("Software is not registered or license will not be expired");

 else

         MessageBox.Show(licenseExpirationDate.Value.ToString());

}

 





Copyright © 2011 intelliprotector.com