Sets the runtime license for LEADTOOLS and unlocks support for optional features such as LEADTOOLS Imaging Pro, Document and Medical capabilities, or PDF support. After you have obtained a runtime license and a developer key, you can call Leadtools.RasterSupport.SetLicense in your application to disable the nag message.
public static void SetLicense(
IRandomAccessStream licenseStream,
string developerKey
)
Public Overloads Shared Sub SetLicense( _
ByVal licenseStream As IRandomAccessStream, _
ByVal developerKey As String _
)
public static void SetLicense(
IRandomAccessStream licenseStream,
string developerKey
)
function Leadtools.RasterSupport.SetLicense(IRandomAccessStream,String)(
licenseStream ,
developerKey
)
public:
static void SetLicense(
IRandomAccessStream^ licenseStream,
String^ developerKey
)
licenseStream
IRandomAccessStream containing the LEADTOOLS runtime license to load.
developerKey
Character string containing the developer key.
You must use this function to set the runtime license for LEADTOOLS and to unlock support for any optional features that you have licensed. If you do not set a RELEASE runtime license, your application will display a "nag" message dialog at runtime, indicating that you have developed the application without a valid runtime license.
In order to obtain a runtime license and developer key, you must contact LEAD. For more information, refer to About LEADTOOLS Runtime Licenses.
For information about LEADTOOLS Document/Medical capabilities, contact LEAD.
To determine if support for optional features has been unlocked, use IsLocked
To set the runtime license from a memory buffer instead of stream, use SetLicense(byte/[/] licenseBuffer, string developerKey).
NOTE: You should not use this overload from the main UI thread in WinRT applications. This method uses blocking reads internally, which if called from UI thread can block too long and cause and exception to be thrown. Instead, you should use SetLicenseAsync, and disable input for your UI until the asynchronous operation has completed.
SetLicense(byte/[/] licenseBuffer, string developerKey)
Products |
Support |
Feedback: SetLicense(IRandomAccessStream,String) Method - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.