ViewerURL Property

Summary
Gets or sets the current ViewerURL.
Syntax
C#
C++/CLI
public string ViewerURL { get; set; } 
public: 
property String^ ViewerURL { 
   String^ get(); 
   void set (    String^ ); 
} 

Property Value

The current ViewerURL

Example
C#
using Leadtools; 
 
using Leadtools.Medical.WebViewer.ExternalControl; 
 
private void MedicalWebViewerExternalController_IsStarted() 
{ 
   string applicationName; 
   string version; 
   int externalControlPort = 500; 
   string viewerUrl = "http://localhost/MedicalViewer/"; 
 
   MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController(viewerUrl); 
 
   // ViewerURL should return what was passed into the constructor 
   Uri uri1 = new Uri(viewerUrl); 
   Uri uri2 = new Uri(controller.ViewerURL); 
   Debug.Assert(Uri.Compare(uri1, uri2, UriComponents.AbsoluteUri, UriFormat.Unescaped, StringComparison.OrdinalIgnoreCase) == 0); 
   controller.Timeout = 30; 
 
   // IsStarted should be 'false' because InitApplication has not been called 
   Debug.Assert(controller.IsStarted == false); 
 
   controller.InitApplication(out applicationName, out version, externalControlPort); 
 
   // IsStarted should be 'true' because InitApplication has been called 
   Debug.Assert(controller.IsStarted == true); 
 
   controller.CloseApplication(); 
 
   // Shutdown the command queue 
   controller.Shutdown(); 
 
   // IsStarted should be 'false' because Shutdown has been called 
   Debug.Assert(controller.IsStarted == false); 
} 
Requirements

Target Platforms

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

Leadtools.Medical.WebViewer.ExternalControl Assembly

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