System.VarUtils.ESafeArrayError.CreateHResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateHResult(AResult: HRESULT; const AMessage: string = '');

Properties

Type Visibility Source Unit Parent
constructor public System.VarUtils.pas System.VarUtils ESafeArrayError

Description

Creates an instance of ESafeArrayError.

CreateHResult is used to create an instance of ESafeArrayError.

The AResult parameter specifies the error code of the exception, while the AMessage parameter represents the message to display when raising the exception.

Note: After a call to CreateHResult, the ErrorCode property is set to the value of AResult.

See Also