This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IG > IGPValue Interface > IGPValue.SetAsText Method (ArcObjects .NET 10.5 SDK) |
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,
IGPMessage** Message
);
[C++]
Parameters text [in] text is a parameter of type BSTR Message [out, retval]
Message is a parameter of type IGPMessage
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.