- code
- Flag that indicates the exception code for which change its message string.
- message
- A character string that contains the current message for code.
| Visual Basic (Declaration) | |
|---|---|
Public Shared Sub SetCodeMessage( _ ByVal code As BarcodeExceptionCode, _ ByVal message As String _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim code As BarcodeExceptionCode Dim message As String BarcodeException.SetCodeMessage(code, message) | |
| C# | |
|---|---|
public static void SetCodeMessage( BarcodeExceptionCode code, string message ) | |
| C++/CLI | |
|---|---|
public: static void SetCodeMessage( BarcodeExceptionCode code, String^ message ) | |
Parameters
- code
- Flag that indicates the exception code for which change its message string.
- message
- A character string that contains the current message for code.
For an example, refer to BarcodeException.GetCodeMessage example.
By default, BarcodeException has a string message for each flag of the BarcodeExceptionCode. To obtain the error string that corresponds to the Code property value, call the GetCodeMessage method.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code