Partilhar via


SPFieldLookup.GetFieldValueAsText Method

Converts the field type value into text for use in Display mode.

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

Syntax

'Declaration
Public Overrides Function GetFieldValueAsText ( _
    value As Object _
) As String
'Usage
Dim instance As SPFieldLookup
Dim value As Object
Dim returnValue As String

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

Parameters

Return Value

Type: System.String
The converted value.

Remarks

This method returns empty if the value is null .

This method returns a set of values separated by semicolons if the AllowMultipleValues property is set to true.

See Also

Reference

SPFieldLookup Class

SPFieldLookup Members

Microsoft.SharePoint Namespace