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


IGPMessages.GetMessage Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IGPMessages.GetMessage Method

Provides a message object from the specified location.

[Visual Basic .NET]
Public Function GetMessage ( _
    ByVal Index As Integer _
) As IGPMessage
[C#]
public IGPMessage GetMessage (
    int Index
);
[C++]
HRESULT GetMessage(
  long Index,
  IGPMessage** msg
);
[C++]

Parameters Index [in] Index is a parameter of type long msg [out, retval]
msg is a parameter of type IGPMessage

Product Availability

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

Remarks

The GetMessage property returns the specified GPMessage object from this collection. 

See Also

IGPMessages 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) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Executing geoprocessing tools in the background (Code Files: RunGPForm) | Geoprocessing events listener (Code Files: GPEventHelper)

.NET Related Topics

Running a geoprocessing tool using background geoprocessing