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