mCore™ .NET SMS Library 1.2

mCore.SMS.License Method

Description:

The License method returns mCore.License class object that allows you to set mCore license key information.

Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)

Exceptions:

mCore.GeneralException

Usage Example:

Visual Basic

Public Class MyClass
   Public WithEvents objSMS As New mCore.SMS
   Public Sub CheckLicense()
      Try
         objSMS.License.Company = "My Company"
         objSMS.License.LicenseType = "PRO-DEVELOPER"
         objSMS.License.Key = "MY-LICENSE-KEY"
         MsgBox(objSMS.License.IsLicensed)
      Catch ex As mCore.GeneralException
         MsgBox(ex.Message, MsgBoxStyle.Critical, "mCore Demo")
      Catch ex As Exception
      End Try
   End Sub
End Class

 
C#
class MyClass
{
   public mCore.SMS objSMS = new mCore.SMS();
   public static void CheckLicense()
   {
      try
      {

         objSMS.License.Company = "My Company";
         objSMS.License.LicenseType = "PRO-DEVELOPER";
         objSMS.License.Key = "MY-LICENSE-KEY";
         MessageBox.Show(objSMS.License.IsLicensed());
      }

      catch (mCore.GeneralException e)
      {
         MessageBox.Show(e.ToString());
      }
      catch (Exception e)
      {
      }
   }
}

See Also:

License.Company Property
License.LicenseType Property
License.Key Property
License.IsLicensed Property

 

Copyright © IG Logix Softech Pvt Ltd, All Rights Reserved