Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal message As String, _ ByVal code As PrinterDriverExceptionCode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public PrinterDriverException( string message, PrinterDriverExceptionCode code ) |
C++/CLI | |
---|---|
public: PrinterDriverException( String^ message, PrinterDriverExceptionCode code ) |
Parameters
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture
- code
- An PrinterDriverException that specifies what caused this exception.
The constructor initializes the Message property of the new instance using message and the Code
property of the new instance using code.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family