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


IGPMessages.ReplaceWarning Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGPMessages Interface > IGPMessages.ReplaceWarning Method
ArcGIS Developer Help

IGPMessages.ReplaceWarning Method

Creates message of type esriGPMessageTypeWarning and replaces it into a specified position.

[Visual Basic .NET]
Public Sub ReplaceWarning ( _
    ByVal Index As Integer, _
    ByVal Message As String _
)
[C#]
public void ReplaceWarning (
    int Index,
    string Message
);
[C++]
HRESULT ReplaceWarning(
  long Index,
  BSTR Message
);
[C++]
Parameters
Index [in]

Index is a parameter of type long Message [in]
Message is a parameter of type BSTR

Product Availability

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

Remarks

The ReplaceWarning method creates a GPMessage of type esriGPMEssageTypeWarning and replaces it into a specified position in this GPMessages collection.

See Also

IGPMessages Interface

.NET Samples

Calculate area geoprocessing function tool