This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IM > IMessage Interface > IMessage.SetError Method (ArcObjects .NET 10.5 SDK) |
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