LEADTOOLS Virtual Printer (Leadtools.Printer.Client.Installer assembly)
LEAD Technologies, Inc

SetCodeMessage Method






A PrinterDriverClientExceptionCode value to set the string message for.
A System.String that contains the new message for code.
Sets the error string that corresponds to a specific PrinterDriverClientExceptionCode.
Syntax
public static void SetCodeMessage( 
   PrinterDriverClientExceptionCode code,
   string message
)
'Declaration
 
Public Shared Sub SetCodeMessage( _
   ByVal code As PrinterDriverClientExceptionCode, _
   ByVal message As String _
) 
'Usage
 
Dim code As PrinterDriverClientExceptionCode
Dim message As String
 
PrinterDriverClientException.SetCodeMessage(code, message)
public static void SetCodeMessage( 
   PrinterDriverClientExceptionCode code,
   string message
)
 function Leadtools.Printer.Client.Installer.PrinterDriverClientException.SetCodeMessage( 
   code ,
   message 
)
public:
static void SetCodeMessage( 
   PrinterDriverClientExceptionCode code,
   String^ message
) 

Parameters

code
A PrinterDriverClientExceptionCode value to set the string message for.
message
A System.String that contains the new message for code.
Remarks
By default, PrinterDriverClientException has a string message for each PrinterDriverClientExceptionCode. Get this message by using the GetCodeMessage method. Also, any string message for any PrinterDriverClientExceptionCode can be changed by using the SetCodeMessage method.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PrinterDriverClientException Class
PrinterDriverClientException Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.