GetFieldValueAsText Method

SPField.GetFieldValueAsText Method

Gets the field value as plain text.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public virtual string GetFieldValueAsText(
	Object value


Type: System.Object

The value to convert.

Return Value

Type: System.String
The value as plain text without any formatting.

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

© 2016 Microsoft