GetLicenseType

Top  Previous  Next

This function returns type of license code.

By default, project has only one license type (Full version, TypeID = 1).

If you need more than one type of license you should add them manually at the Purchases tab page.

 

Public Shared Function GetLicenseType() As Integer

 

Parameters

 

 No parameters.

 

Return value

 

 Returns type of license code. 
 Returns -1 if license code is not available (software is not purchased, trial period).

 

Requirements

 

 file: IntelliProtector.vb

 

Example

 

Public Sub MP3Encode_ProVersion()

    Dim iLicenseType As Integer = IntelliProtectorService.IntelliProtector.GetLicenseType()

    

    Const  ciLiteVersion As Integer = 1

    Const  ciBasicVersion As Integer = 2

    Const  ciProVersion As Integer = 3

    

    ' call this function during the trial period and for the Pro Version only...

    If iLicenseType <> -1 AndAlso iLicenseType <> ciProVersion Then

        Exit Sub

        

        ' encode mp3 here...

    End If

End Sub

 





Copyright © 2011 intelliprotector.com