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


IGPMessages.GetMessage Method (ArcObjects .NET 10.6 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
);
[C++]

Parameters Index [in]
Index is a parameter of type long

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