- code
- A TwainExceptionCode value to get the string message for.
Visual Basic (Declaration) | |
---|---|
Public Shared Function GetCodeMessage( _ ByVal code As TwainExceptionCode _ ) As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim code As TwainExceptionCode Dim value As String value = TwainException.GetCodeMessage(code) |
C# | |
---|---|
public static string GetCodeMessage( TwainExceptionCode code ) |
C++/CLI | |
---|---|
public: static String^ GetCodeMessage( TwainExceptionCode code ) |
Parameters
- code
- A TwainExceptionCode value to get the string message for.
Return Value
A System.String that contains the current message for codeFor an example, refer to SetCodeMessage.
By default, TwainException has a string message for each TwainExceptionCode. You can get this message by calling this method. Moreever, you can change any string message for any TwainExceptionCode 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