SetCodeMessage Method

Summary
Sets the error string that corresponds to a specific PrinterDriverClientExceptionCode.
Syntax
C#
C++/CLI
public static void SetCodeMessage( 
   PrinterDriverClientExceptionCode code, 
   string 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

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