Gets the type of the LEADTOOLS kernel.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly Property KernelType As RasterKernelType |
Return Value
Aa
RasterKernelType enumeration member indicating the LEADTOOLS kernel type.
Example
This example will check the LEADTOOLS kernel type and whether it has expired
Visual Basic | Copy Code |
---|
Public Sub LeadtoolsKernelExample()
Select Case RasterSupport.KernelType
Case RasterKernelType.Release
Console.WriteLine("Release kernel")
Case RasterKernelType.Nag
Console.WriteLine("Nag kernel")
Case RasterKernelType.Evaluation
Console.WriteLine("Evaluation kernel")
If RasterSupport.KernelExpired Then
Console.WriteLine("Evaluation kernel has expired")
Else
Console.WriteLine("Evaluation kernel has not expired yet")
End If
End Select
End Sub |
C# | Copy Code |
---|
public void LeadtoolsKernelExample() { // show current kernel switch(RasterSupport.KernelType) { case RasterKernelType.Release: Console.WriteLine("Release kernel"); break; case RasterKernelType.Nag: Console.WriteLine("Nag kernel"); break; case RasterKernelType.Evaluation: Console.WriteLine("Evaluation kernel"); // show if the kernel has expired if(RasterSupport.KernelExpired) Console.WriteLine("Evaluation kernel has expired"); else Console.WriteLine("Evaluation kernel has not expired yet"); break; } } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also