Knowledge Base

How-to: Display uses remaining

On This Page

After validating a license, get a UseMonitor object. The TimeMonitor provides information about the state of a Use Limit. After obtaining a UseMonitor you can use the exposed properties to query the state of the time limit.

_license = SecureLicenseManager.Validate( this, null, null );
var monitor = _license.GetUseMonitor();
MessageBox.Show( 
    String.Format( "You have {0} of {1} uses remaining.", 
        monitor.UseCount, 
        monitor.UseLimit.Uses ) );

Related Articles

Published : Mar 03, 2010
Updated : Mar 03, 2010
Views : 247

Applies To

DeployLX Licensing 4.x
DeployLX Licensing 3.x

Creative Commons LicenseDownloads

Tags

Folder

View the discussion thread without JavaScript.