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

Geoprocessing events listener (Code Files: GPEventHelper) |