SalOleErrorInfo
Namespace: PPJ.Runtime.Com
Assembly: PPJ.Web.50 (5.0.0.0)
Stores the status, description, source, and help information associated with an automation error.
- C#
- VB.NET
public class SalOleErrorInfo : SalFunctionalClass
Public Class SalOleErrorInfo
Inherits SalFunctionalClass
Example:
using PPJ.Runtime.Com;
var error = new SalOleErrorInfo();
using (var automation = new SalObject())
{
if (automation.GetLastError(error))
System.Console.WriteLine(error.description);
}
Constructors
SalOleErrorInfo()
Initializes a new instance of SalOleErrorInfo.
Fields
| Name | Type | Description | Value |
|---|---|---|---|
| description | SalString | The error message. | |
| helpContext | SalNumber | The help context identifier; initially zero. | |
| helpFile | SalString | The help file or help link associated with the error. | |
| scode | SalNumber | The COM HRESULT or status code; initially zero. | |
| source | SalString | The component or application that reported the error. | |
| wcode | SalNumber | The legacy automation error code; initially zero. |