Skip to main content
Version: 2025

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.

public class SalOleErrorInfo : 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

Instance member SalOleErrorInfo()

Initializes a new instance of SalOleErrorInfo.

Fields

NameTypeDescriptionValue
descriptionSalStringThe error message.
helpContextSalNumberThe help context identifier; initially zero.
helpFileSalStringThe help file or help link associated with the error.
scodeSalNumberThe COM HRESULT or status code; initially zero.
sourceSalStringThe component or application that reported the error.
wcodeSalNumberThe legacy automation error code; initially zero.