Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPField.GetFieldValueAsText method

Gets the field value as plain text.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public virtual string GetFieldValueAsText(
	Object value
)

Parameters

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.