![]() |
Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.28
|
Leadtools Namespace > RasterSupport Class > SetLicense Method : SetLicense(String,String) Method |
public static void SetLicense( string licenseFile, string developerKey )
'Declaration
Public Overloads Shared Sub SetLicense( _ ByVal licenseFile As String, _ ByVal developerKey As String _ )
'Usage
Dim licenseFile As String Dim developerKey As String RasterSupport.SetLicense(licenseFile, developerKey)
public static void SetLicense( string licenseFile, string developerKey )
+ (BOOL)setLicenseFile:(NSString *)licenseFile developerKey:(NSString *)developerKey error:(NSError **)error
public static void setLicense( String licenseFile, String developerKey )
function Leadtools.RasterSupport.SetLicense(String,String)( licenseFile , developerKey )
public: static void SetLicense( String^ licenseFile, String^ developerKey )
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 disk file, use SetLicense(byte[] licenseBuffer, string developerKey).
NOTE: As an alternative to calling RasterSupport.SetLicense, you can specify your runtime license in the Leadtools.dll.config file. For more information, see LEADTOOLS Config License.
NOTE: Do not use this overload from the main UI thread in WinRT applications. This method uses blocking reads internally, which if called from an UI thread can block too long and cause and exception to be thrown. Instead, use SetLicenseAsync, and disable input for the UI until the asynchronous operation has completed.
RasterSupport Class
RasterSupport Members
Overload List
Setting a Runtime License
Activating Server Licenses
SetLicense(byte[] licenseBuffer, string developerKey)
SetLicenseAsync
SetLicense(IRandomAccessStream licenseStream, String developerKey)
SetLicense(Stream licenseFile, string developerKey)