The Company property gets or sets the the name of the company in
whose name the mCore™ .NET SMS Library is licensed.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Visual Basic |
| Public Class MyClass Public WithEvents objSMS As New mCore.SMS Public Sub CheckLicense() objLic As mCore.License = objSMS.License Try objLic.Company = "My Company" objLic.LicenseType = "PRO-DEVELOPER" objLic.Key = "MY-LICENSE-KEY" MsgBox(objLic.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() { mCore.License objLic = objSMS.License(); try {
objLic.Company = "My Company"; catch
(mCore.GeneralException e) |
mCore.SMS.License Method
License.LicenseType Property
License.Key Property
License.IsLicensed Method