DeployLX Software Protection System

SecureLicenseManager Class

The SecureLicenseManager class is used by the component, class, control or application to manage it's licenses. See the Validate(Object, Type, LicenseValidationRequestInfo) method for for details on validating a license.


Public NotInheritable Class SecureLicenseManager _
	Inherits LicenseProvider
public sealed class SecureLicenseManager : LicenseProvider


The SecureLicenseManager is the core interface to the DeployLX Licensing enforcement system. Each protected class calls Validate(Object, Type, LicenseValidationRequestInfo) to look for a license on the client machine.

Validation Topics


This sample demonstrates the basic steps required to check for a license in code. See the Validate(Object, Type, LicenseValidationRequestInfo) method for additional snippets.
Visual Basic
Imports Microsoft.VisualBasic
Imports System
Imports System.Windows.Forms
Imports DeployLX.Licensing.v5

Namespace VBProtectedDll
    Public Class ProtectedClass
        Private _license As SecureLicense

        Public Sub New()
            _license = SecureLicenseManager.Validate(Me, Nothing, Nothing)
        End Sub

        Public Sub DoSomething()
            If _license.IsTrial Then
                MessageBox.Show("Hello from ProtectedClass, enjoy the trial.")
                MessageBox.Show("Hello from ProtectedClass, thanks for your purchase.")
            End If
        End Sub
    End Class
End Namespace
using System;
using System.Windows.Forms;
using DeployLX.Licensing.v5;

namespace CSharpProtectedDll
    public class ProtectedClass
        private SecureLicense _license;

        public ProtectedClass()
            _license = SecureLicenseManager.Validate( this, null, null );

        public void DoSomething(  )
            if( _license.IsTrial )
                MessageBox.Show( "Hello from ProtectedClass, enjoy the trial." );
                MessageBox.Show( "Hello from ProtectedClass, thanks for your purchase." );

Inheritance Hierarchy


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

See Also