IsLicensed Method

Description:

The IsLicensed method when called, checks the values set for Company, Key and LicenseType properties and returns a Boolean result whether the license information is valid or not.

   

Usage blnResult = ObjectName.License.IsLicensed
Parameters None
Returns Boolean value
  • True - If the license information provided is valid
  • False - If the license information provided is not a valid license information
Remarks
  • Calling IsLicensed method for Trial version will always return False
  • It is not mandatory to run IsLicensed method in your code. It is only a tool to verify if your license information is correct.

Usage Example:

Visual Basic / ASP (VBScript)
Dim objSMS As mCore.SMS
Set objSMS = New mCore.SMS
objSMS.License.Company = "My Company Name"
objSMS.License.Key = "My-License-Key"
objSMS.License.LicenseType = "PRO-DISTRIBUTION"
If objSMS.IsLicensed Then
     MsgBox objSMS.About
Else
     MsgBox "Invalid License Information!"
End If
Set objSMS = Nothing

  

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved