ExceptionExtensionsGetErrorCode Method  | 
 Gets the error code associated with an 
Exception.
 
    Namespace: 
   Dundas.BI
    Assembly:
   Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.3.0.1000)
Syntaxpublic static int GetErrorCode(
	this Exception exception
)
<ExtensionAttribute>
Public Shared Function GetErrorCode ( 
	exception As Exception
) As Integer
public:
[ExtensionAttribute]
static int GetErrorCode(
	Exception^ exception
)
[<ExtensionAttribute>]
static member GetErrorCode : 
        exception : Exception -> int 
Parameters
- exception
 - Type: SystemException
The exception from which to extract the error code. 
Return Value
Type: 
Int32The error code associated with 
exception, or 
0 if none has been assigned.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
Exceptions
See Also