| Visual Basic (Usage) | Copy Code |
|---|---|
Dim e As Exception Dim defaultCode As UInteger Dim instance As New StatusCode(e, defaultCode) | |
| C# | |
|---|---|
public StatusCode( Exception e, uint defaultCode ) | |
Parameters
- e
- The exception to convert to a status code
- defaultCode
- The default code to apply if the routine cannot determine the code from the Exception
Initializes the object from an exception and a numeric code. The numeric code
will be determined from the Exception if possible, otherwise the value passed in
will be used.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x