ECapeUsercode Property

Code to designate the subcategory of the error.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[DispIdAttribute(1)]
int code { get; }

Property Value

Int32
The HRESULT value for the exception.

Remarks

The error code is used as the function return HRESULT in the COM calling pattern. When a .Net-based component throws an exception, the HRESULT assigned to the exception is returned to the COM-based caller. It is important to set the exception HRESULT value to provide HRESULT information to a COM caller.

The assignment of values is left to each implementation. So that is a proprietary code specific to the CO component provider. By default, set to the CAPE-OPEN error HRESULT CapeErrorInterfaceHR.

See Also