←Select platform

IsLocked Method

Summary
Indicates whether support is locked for an optional feature, such as LEADTOOLS Document/Medical capabilities.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public static bool IsLocked( 
   RasterSupportType support 
) 
+ (BOOL)isLocked:(LTRasterSupportType)support 
public static boolean isLocked( 
   RasterSupportType support 
); 
public: 
static bool IsLocked(  
   RasterSupportType support 
)  
def IsLocked(self,support): 

Parameters

support
Support type

Return Value

true or false

Remarks

To set a runtime license and unlock a feature, use the SetLicense method.

For more information, refer to Unlocking Special LEAD Features and A Special Note about Loading 12 and 16 Bit Grayscale Images.

For information about LEADTOOLS Document/Medical capabilities, contact LEAD.

Example
C#
using Leadtools; 
 
 
public void SetLicenseFileExample() 
{ 
#if DEBUG 
	LicenseSupport.SetLicense(); 
#else 
	string MY_LICENSE_FILE = @"leadtools.lic"; 
	string MY_DEVELOPER_KEY = "xyz123abc"; 
	RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY); 
#endif 
	bool isLocked = RasterSupport.IsLocked(RasterSupportType.Document); 
	if (isLocked) 
		Console.WriteLine("Document support is locked"); 
	else 
		Console.WriteLine("Document support is unlocked"); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.