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

IGPMessage.ErrorCode Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGPMessage Interface > IGPMessage.ErrorCode Property
ArcGIS Developer Help

IGPMessage.ErrorCode Property

The error code for the geoprocessing message.

[Visual Basic .NET]
Public Property ErrorCode As Integer
public int ErrorCode {get; set;}
HRESULT get_ErrorCode(
HRESULT put_ErrorCode(

Product Availability

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


The get_ErrorCode property returns the message's error code. It applies only to a message of type esriGPMessageTypeError.

See Also

IGPMessage Interface

.NET Samples

Closest facility solver Geoprocessing events listener Location-allocation solver Service area solver Vehicle routing problem solver