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


IMessage.SetError Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IM > IMessage Interface > IMessage.SetError Method
ArcGIS Developer Help

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