Compartilhar via


SPFieldLookup.GetFieldValue Method

Converts the specified field value into a field type value.

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

Syntax

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

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

Parameters

  • value
    Type: System.String

    The field value to convert into a field type value.

Return Value

Type: System.Object
The field type value.

Remarks

This method returns null if value is null or empty.

This method returns an SPFieldLookupValueCollection type value if the AllowMultipleValues property is set to true; otherwise, it returns an SPFieldLookupValue type value.

See Also

Reference

SPFieldLookup Class

SPFieldLookup Members

Microsoft.SharePoint Namespace

Other Resources

How to: Create a Custom Field Value Class