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


IGPValue.SetAsText Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IGPValue.SetAsText Method

Provides the value of the value object with the given string value.

[Visual Basic .NET]
Public Function SetAsText ( _
    ByVal text As String _
) As IGPMessage
[C#]
public IGPMessage SetAsText (
    string text
);
[C++]
HRESULT SetAsText(
  BSTR text
);
[C++]

Parameters text [in]
text is a parameter of type BSTR

Product Availability

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

Remarks

The SetAsText method sets the value of this Value object as a text string. For DataElement value objects it is the NameString. For simple value objects it is the text string representing the scalar value.

See Also

IGPValue Interface