Message Property

Summary
Gets a message that describes the current exception.
Syntax
C#
C++/CLI
public override string Message { get; } 
public: 
property String^ Message { 
   String^ get() override; 
} 

Property Value

The error message that explains the reason for the exception, or an empty string("").

Remarks

Overrides System.Exception.Message.

If this PrinterDriverClientException instance was initialized with a specific Code but no specific message, then this property will return the default error string that corresponds to Code.

Get the error string that corresponds to any Code through the GetCodeMessage method.

Change the error string that corresponds to any Code through the SetCodeMessage method.

Example
C#
using Leadtools.Printer.Client.Installer; 
 
 
public void PrinterInstallerExample() 
{ 
   try 
   { 
      PrinterInstaller.SetPrinterConnectionDll("Test Printer", "C:\\Test Dll.dll", "Test Server"); 
   } 
   catch (PrinterDriverClientException ex) 
   {             
      Console.WriteLine(ex.Message); 
   } 
   catch (Exception ex) 
   { 
      Console.WriteLine(ex.Message); 
   } 
} 
Requirements

Target Platforms

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