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


IGPMessage.ErrorCode Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IGPMessage.ErrorCode Property

The error code for the geoprocessing message.

[Visual Basic .NET]
Public Property ErrorCode As Integer
[C#]
public int ErrorCode {get; set;}
[C++]
HRESULT get_ErrorCode(
  long* ErrorCode
);
[C++]
HRESULT put_ErrorCode(
  long ErrorCode
);
[C++]

Parameters ErrorCode [out, retval] ErrorCode is a parameter of type long ErrorCode [in] ErrorCode is a parameter of type long

Product Availability

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

Remarks

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 (Code Files: frmClosestFacilitySolver) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Geoprocessing events listener (Code Files: GPEventHelper)