|
DTO2 only: This object allows you to add and remove product licenses.
None
Note
In a later update to this release, this object will have the ability to produce a list of current licenses. That feature is not present in this release.
None
Obtain from Session object
' instantiate session object and connect to server Dim my_session as new DtoSession Dim res as DtoResult Dim my_licmgr as DtoLicenseMgr result = my_session.Connect("myserver", "username", "password") ' now obtain License Manager object Set my_licmgr = my_session.LicenseMgr ' Add a license res = my_licmgr.AddLicense("ERXVD3U4ZS9KR94QPDHV5BN2")
Add a license.
|
LicenseManager
|
DtoLicenseMgr object
|
|
License
|
A valid license key to apply to the engine you are currently connected to with a DtoSession object.
|
|
result
|
DtoResult long value indicating the result of the method call. Use the Error property of the DtoSession Object to obtain a description for the result.
|
A method to obtain the current licenses will be added in a later update.
' instantiate session object and connect to server Dim my_session as new DtoSession Dim res as DtoResult Dim my_licmgr as DtoLicenseMgr result = my_session.Connect("myserver", "username", "password") ' now obtain License Manager object Set my_licmgr = my_session.LicenseMgr ' Add a license res = my_licmgr.AddLicense("ERXVD3U4ZS9KR94QPDHV5BN2")
Removes a license.
|
LicenseManager
|
DtoLicenseMgr object
|
|
License
|
A valid license key to remove from the engine you are currently connected to with a DtoSession object.
|
|
result
|
DtoResult long value indicating the result of the method call. Use the Error property of the DtoSession Object to obtain a description for the result.
|
A method to obtain the current licenses will be added in a later update.
' instantiate session object and connect to server Dim my_session as new DtoSession Dim res as DtoResult Dim my_licmgr as DtoLicenseMgr result = my_session.Connect("myserver", "username", "password") ' now obtain License Manager object Set my_licmgr = my_session.LicenseMgr ' Delete a license res = my_licmgr.DeleteLicense("ERXVD3U4ZS9KR94QPDHV5BN2")
|
Chapter contents
Prev topic: DtoCategory Object
|