- code
- A PrinterDriverExceptionCode value to set the string message for.
- message
- A 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 |
|---|---|
| |
| 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 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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Copy Code