ECape Usercode 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)
The HRESULT value for the exception.
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[DispIdAttribute(1)]
int code { get; }VB
<DispIdAttribute(1)>
ReadOnly Property code As Integer
GetProperty Value
Int32The 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.