View previous topic :: View next topic |
Author |
Message |
lfmacias
Joined: 07 Mar 2007 Posts: 2
|
Posted: Wed Mar 07, 2007 1:50 pm Post subject: getting Productinfo from Licensed Component |
|
|
I want to create a 45 evaluation component, accondigng with the licensed sample "LicensedControl_CS" you provided I must to use EncryptedLicenseProvider, but how to get the Productinfo data in order to work with E45 vaule
Thanks |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Mar 07, 2007 10:00 pm Post subject: |
|
|
If you want to get the license you need to use the LicenseManager.IsValid method (instead of IsLicensed) then cast the license to an EncryptedLicense. ie
Code: | License license = null;
if (LicenseManager.IsValid(typeof(MyControl), this, license))
{
EncryptedLicense encryptedLicense = license as EncryptedLicense;
string productInfo = encryptedLicense.ProductInfo;
} |
_________________ Infralution Support |
|
Back to top |
|
|
lfmacias
Joined: 07 Mar 2007 Posts: 2
|
Posted: Wed Mar 07, 2007 11:28 pm Post subject: |
|
|
Thanks so much |
|
Back to top |
|
|
|