Is this page helpful?

In this page

IsExpired Property

Summary
Gets a value indicating whether the LEADTOOLS PACS Framework is expired.
Syntax
C#
C++/CLI
public bool IsExpired { get; } 
public: 
property bool IsExpired { 
   bool get(); 
} 

Property Value

true if the framework is expired, otherwise it is false.

Remarks

This is only valid if IsEval is true.

Example
C#
Copied to clipboard
using Leadtools; 
using Leadtools.Dicom.AddIn.Common; 
using Leadtools.Dicom.AddIn.Interfaces; 
 
 
 
public void LockCheck() 
{ 
   ServiceAdministrator admin = new ServiceAdministrator(LEAD_VARS.InstallWin32Dir); 
 
   if (!admin.IsEval) 
   { 
      // 
      // If it isn't an eval then we need to set the license file. 
      // 
      if (admin.IsLocked) 
      { 
         //admin.Unlock("Substitute Your Code"); 
         string MY_LICENSE_FILE = "d:\\temp\\TestLic.lic"; 
         string MY_DEVELOPER_KEY = "xyz123abc"; 
 
         RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY); 
         if (admin.IsLocked) 
         { 
            Console.WriteLine("Invalid license"); 
            return; 
         } 
         else 
         { 
            // 
            // Once unlocked initialize the services 
            // 
            admin.Initialize(); 
            foreach (KeyValuePair<string, DicomService> service in admin.Services) 
            { 
               Console.WriteLine(service.Value.Settings.AETitle); 
               foreach (IAddInOptions option in service.Value.AddInOptions) 
               { 
                  Console.WriteLine("Option: {0}", option.Text); 
               } 
            } 
         } 
      } 
      Console.WriteLine("License file valid."); 
   } 
   else 
   { 
      if (admin.IsExpired) 
      { 
         Console.WriteLine("Evaluation has expired"); 
      } 
   } 
} 
Requirements

Target Platforms

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

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