This document is archived and information here might be outdated.  Recommended version.


IMessage.SetError Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IMessage.SetError Method

Writes error information.

[Visual Basic .NET]
Public Sub SetError ( _
    ByVal hresult As Integer, _
    ByVal pErrorInfo As IErrorInfo _
)
[C#]
public void SetError (
    int hresult,
    IErrorInfo pErrorInfo
);
[C++]
HRESULT SetError(
  long hresult,
  IErrorInfo* pErrorInfo
);
[C++]

Parameters hresult [in] hresult is a parameter of type long pErrorInfo [in]
pErrorInfo is a parameter of type IErrorInfo

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMessage Interface