SPField.GetFieldValueAsText Method

Returns the field value as plain text.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Overridable Function GetFieldValueAsText ( _
    value As Object _
) As String

Dim instance As SPField
Dim value As Object
Dim returnValue As String

returnValue = instance.GetFieldValueAsText(value)
public virtual string GetFieldValueAsText(
    Object value


  • value
    Type: System.Object
    An object that represents the value to convert.

Return Value

Type: System.String
A string that contains the value as plain text, for example, without HTML.


In a custom type-specific class, override the GetFieldValueAsText method to convert, for example, a DateTime value to a display format based on the locale and calendar of end users in Display mode.

See Also


SPField Class

SPField Members

Microsoft.SharePoint Namespace