ILicenses

Description:

ILicenses is a collection for managing licenses.

import "OxSvrSpt.idl"

Public Methods:

HRESULT Add ([in] BSTR Name)
HRESULT Delete ([in] VARIANT Index)
HRESULT Clear ()
HRESULT Check ([in] BSTR Name)

Properties:

long Count [get]
BSTR Item([in] VARIANT Index) [get]

Documentation of Element Functions:

  • HRESULT Add ([in] BSTR Name)

abn.Add adds a new license string.

If you try to add a license string twice, the second one is ignored. No error is generated. The passed license string is converted to uppercase and managed internally.

Parameters:

[in]: Name license string to be added

  • HRESULT Check ([in] BSTR Name)

Check verifies the specified license with the server without checking it in via lic.LicLogin.

This method works via the server job " lic.CheckLicense "

If the verification fails, the topmost error of the error collection is returned as a COM error.

Parameters:

[in]: Name the license to be verified

  • HRESULT Clear ()

Clear removes all elements from the collection.

  • HRESULT Delete ([in] VARIANT Index)

Delete deletes the license entry based on position in the list or name.

Parameters:

[in]: Index name or position of the license entry to be deleted

Documentation of Properties:

  • long Count [get]

Count returns the number of elements in the collection.

Parameters:

[out]: plNumber (VB return value) number of elements in the collection

  • BSTR Item([in] VARIANT Index) [get]

Item returns the specified element of the collection based on position or key.

If a position outside the valid index is specified, an error with the error value errCollectionIndexOutOfRange is returned. If the item cannot be found, an error with the value errCollectionItemNotFound is returned.

Parameters:

[in]: Index position or name of the requested element

[out]: pItem (VB return value) corresponding license that matches the key