This documentation is archived and is not being maintained.

SPField.GetFieldValue Method

Windows SharePoint Services 3

Converts the specified value into a field type value object when the field type requires a complex data type that is different from the parent field type.

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

public virtual Object GetFieldValue(
	string value
)

Parameters

value
Type: System.String
A string to convert into a field type value object.

Return Value

Type: System.Object
An object that repesents the field type value object.

Use the GetFieldValue method when the field type requires a complex data type that is different from that of the parent field type. In a custom type-specific class, override this method to convert, for example, a URL field value in URL, Description format into an SPFieldUrlValue object. For more information about field value objects, see Custom Field Value Classes.

Show: