DeployLX Software Protection System

LicenseEventArgs Class

Represents arguments for events fired by SecureLicenseManager.

Syntax

Public Class LicenseEventArgs _
	Inherits EventArgs
public class LicenseEventArgs : EventArgs

Examples

This code demonstrates how to Validate a license that contains a DelayedLimit.
Visual Basic
Imports DeployLX.Licensing.v5

...

Public Sub DelayedLimitEvents()
    AddHandler SecureLicenseManager.DelayedValidationComplete, AddressOf SecureLicenseManager_DelayedValidationComplete
    AddHandler SecureLicenseManager.DelayedValidationFailed, AddressOf SecureLicenseManager_DelayedValidationFailed

    SecureLicenseManager.Validate(Me, Nothing, Nothing)
End Sub

Private Sub SecureLicenseManager_DelayedValidationFailed(ByVal sender As Object, ByVal e As LicenseEventArgs)
    MessageBox.Show("There are too many users attempting to use the same serial number.")
    Application.Exit()
End Sub

Private Sub SecureLicenseManager_DelayedValidationComplete(ByVal sender As Object, ByVal e As LicenseEventArgs)
    ' Enable features that may have required remote validation
End Sub
C#
using DeployLX.Licensing.v5;

...

public void DelayedLimitEvents()
{
    SecureLicenseManager.DelayedValidationComplete += new LicenseEventHandler( SecureLicenseManager_DelayedValidationComplete );
    SecureLicenseManager.DelayedValidationFailed += new LicenseEventHandler( SecureLicenseManager_DelayedValidationFailed );

    SecureLicenseManager.Validate( this, null, null );
}

void SecureLicenseManager_DelayedValidationFailed( object sender, LicenseEventArgs e )
{
    MessageBox.Show( "There are too many users attempting to use the same serial number." );
    Application.Exit();
}

void SecureLicenseManager_DelayedValidationComplete( object sender, LicenseEventArgs e )
{
    // Enable features that may have required remote validation
}

Inheritance Hierarchy

System..::..Object
  System..::..EventArgs
    DeployLX.Licensing.v5..::..LicenseEventArgs

Assembly:  DeployLX.Licensing.v5 (in DeployLX.Licensing.v5.dll)

See Also