The SetCodeMessage Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- code
- A PrinterDriverExceptionCode value to set the string message for.
- message
- A System.String that contains the new message for code.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub SetCodeMessage( _ ByVal code As PrinterDriverExceptionCode, _ ByVal message As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim code As PrinterDriverExceptionCode Dim message As String PrinterDriverException.SetCodeMessage(code, message) |
C# | |
---|---|
public static void SetCodeMessage( PrinterDriverExceptionCode code, string message ) |
C++/CLI | |
---|---|
public: static void SetCodeMessage( 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.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7