public override string Message { get; }
The error message that explains the reason for the exception, or an empty string("").
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.
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);
}
}