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