←Select platform

SetCodeMessage Method

Summary

Sets the error string that corresponds to a specific PrinterDriverExceptionCode

Syntax

C#
VB
C++
public static void SetCodeMessage(  
   Leadtools.Printer.PrinterDriverExceptionCode code, 
   string message 
) 
  
Public Shared Sub SetCodeMessage( _ 
   ByVal code As Leadtools.Printer.PrinterDriverExceptionCode, _ 
   ByVal message As String _ 
)  
public: 
static void SetCodeMessage(  
   Leadtools.Printer.PrinterDriverExceptionCode code, 
   String^ message 
)  

Parameters

code
A PrinterDriverExceptionCode value to set the string message for.

message
A System.String that contains the new message for

code
A PrinterDriverExceptionCode value to set the string message for.

Remarks

By default, PrinterDriverException has a string message for each PrinterDriverExceptionCode. Get this message by using the GetCodeMessage method. Also, any string message for any PrinterDriverExceptionCode can be changed by using the SetCodeMessage method.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Printer Assembly
Click or drag to resize