ArcObjects Library Reference (Geoprocessing)  

IGpDispatch.GetMessages Method

Gets all the return messages.

[Visual Basic .NET]
Public Function GetMessages ( _
    [ByRef severity As Object] _
) As String
[C#]
public string GetMessages (
    ref object severity
);
[C#]

Optional Values

severity   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT GetMessages(
  VARIANT* severity,
  BSTR* Messages
);
[C++]

Parameters

severity [optional]   severity is a parameter of type VARIANT

  To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Messages [out, retval]   Messages is a parameter of type BSTR

Product Availability

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

See Also

IGpDispatch Interface