PreviousDTO Programmer's Guide (9.1 revision 1) Next

DtoLicenseMgr Object

Show this topic in Library frames

DTO2 only: This object allows you to add and remove product licenses.

Properties

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.
Collections

None

Methods
AddLicense 
DeleteLicense 
Remarks

Obtain from Session object

Example
' 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") 
See Also

DtoSession Object

Methods Detail

AddLicense

Add a license.

Syntax
result = LicenseManager.AddLicense(License) 
Arguments

LicenseManager
DtoLicenseMgr object
License
A valid license key to apply to the engine you are currently connected to with a DtoSession object.

Return Values

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.

Remarks

A method to obtain the current licenses will be added in a later update.

Example
' 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") 

DeleteLicense

Removes a license.

Syntax
result = LicenseManager.DeleteLicense(License) 
Arguments

LicenseManager
DtoLicenseMgr object
License
A valid license key to remove from the engine you are currently connected to with a DtoSession object.

Return Values

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.

Remarks

A method to obtain the current licenses will be added in a later update.

Example
' 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
Publication contents

Prev topic: DtoCategory Object
Next topic: DtoSettings Collection