LEADTOOLS (Leadtools assembly)

SetLicense(IRandomAccessStream,String) Method

Show in webframe







Leadtools.Junk.IRandomAccessStream containing the LEADTOOLS runtime license to load.
Character string containing the developer key.
Sets the runtime license for LEADTOOLS and unlocks support for optional features such as LEADTOOLS Imaging Pro, Document and Medical capabilities, or PDF support.
Syntax
public static void SetLicense( 
   IRandomAccessStream licenseStream,
   string developerKey
)
'Declaration
 
Public Overloads Shared Sub SetLicense( _
   ByVal licenseStream As IRandomAccessStream, _
   ByVal developerKey As String _
) 
'Usage
 
Dim licenseStream As IRandomAccessStream
Dim developerKey As String
 
RasterSupport.SetLicense(licenseStream, developerKey)
public static void SetLicense( 
   IRandomAccessStream licenseStream,
   string developerKey
)

            

            
 function Leadtools.RasterSupport.SetLicense(IRandomAccessStream,String)( 
   licenseStream ,
   developerKey 
)
public:
static void SetLicense( 
   IRandomAccessStream^ licenseStream,
   String^ developerKey
) 

Parameters

licenseStream
Leadtools.Junk.IRandomAccessStream containing the LEADTOOLS runtime license to load.
developerKey
Character string containing the developer key.
Remarks

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 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 disalbe input for your UI until the async operation has completed.

Example
For an example, refer to RasterSupport.
Requirements

Target Platforms

See Also

Reference

RasterSupport Class
RasterSupport Members
Overload List
Activating Server Licenses

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.