
GetLicenseInformation
ODBPPLib.IODBPP.GetLicenseInformation allows any application to gain access to the ObjectDatabase++ licence information.ODBPPLib.LicenseInfo GetLicenseInformation ( );
Parameters
| void |
Return Values
GetLicenseInformation returns the LicenseInfo with the list of all current license details.Remarks
Example Use
- C#
private void button1_Click(object sender, EventArgs e){
try
{
ODBPPLib.ODBPP odbpp = new ODBPPLib.ODBPP();
ODBPPLib.LicenseInfo info = odbpp.GetLicenseInformation();
if(info.registeredName != null)
MessageBox.Show("ObjectDatabase++ is currently registered to:-\n"
+ info.registeredName + ".\nFor "+info.installations
+ " installations between the period "
+ info.start.ToLongDateString() + " and "
+ info.finish.ToLongDateString());
else MessageBox.Show("ObjectDatabase++ is in developer registartion"
+ " mode between the period " + info.start.ToLongDateString()
+ " and " + info.finish.ToLongDateString());
}
catch (Exception e1)
{
MessageBox.Show(e1.Message);
}
}Also See
RegisterODBPPListen All
Comments (0)

