API | ITcLicenseDescCollection 5.37.1 ITcLicenseDescCollection | ITcLicenseDescCollection ITcLicenseDescCollection is the index- and key-based collection of the currently loaded license descriptors. The collection is populated using the same license data source as ITcLicenseManager::QueryLicenses [ } 142] . Properties Methods 5.37.1.1 ITcLicenseDescCollection::Contains | ITcLicenseDescCollection::Contains Checks whether the specified license GUID exists in the collection without returning the object itself.
Signature HRESULT Contains(BSTR guidLic, VARIANT_BOOL* pbFound); Parameter Return value 5.37.1.2 ITcLicenseDescCollection::Lookup | ITcLicenseDescCollection::Lookup Looks up a license descriptor by its GUID. Unlike TryLookup, a lookup failure is indicated by the HRESULT return value. TE1000 145 Version: 1.7.0 Property Type get/set Description Count long* get Number of license descriptors held in the collection. Item ITcLicenseDesc [} 147]** get Returns an entry from the collection based on a VARIANT index (position or key). For explicit GUID lookups, Lookup and TryLookup are the clearer options. Method Description NewEnum _ Creates an enumerator over the contained license descriptors.
TryLookup Search for a license by its GUID without having to force a failure if it is not found. Lookup Searches for a license by its GUID and returns an HRESULT indicating that no license was found. Contains Checks whether a license GUID is included in the collection. Name Type Description guidLic BSTR [in] The GUID of the license to be checked, as a string. Name Type Description pbFound VARIANT BOOL* _ [out, retval] VARIANT TRUE, if the license is included. _ (HRESULT) HRESULT S OK if successful, otherwise an error code. _