This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGPMessages Interface > IGPMessages.AddError Method (ArcObjects .NET 10.5 SDK) |
Adds an error message to the messages.
[Visual Basic .NET] Public Sub AddError ( _ ByVal ErrorCode As Integer, _ ByVal Message As String _ )
[C#] public void AddError ( int ErrorCode, string Message );
[C++]
HRESULT AddError(
long ErrorCode,
BSTR Message
);
[C++]
Parameters ErrorCode [in] ErrorCode is a parameter of type long Message [in] Message is a parameter of type BSTR
The AddError method creates a GPMessage of type esriGPMEssageTypeError and adds it to this collection.