Leadtools Namespace > RasterSupport Class > SetLicense Method : SetLicense(IRandomAccessStream,String) Method |
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 )
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: 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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2