This topic has not yet been rated - Rate this topic

SPFieldLookupValue Constructor (String)

Initializes a new instance of the SPFieldLookupValue class that is based on the specified field value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPFieldLookupValue(
	string fieldValue
)

Parameters

fieldValue
Type: System.String
A string that contains a field value.

For information about the format for the fieldValue parameter, see the ToString() method.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Example
...
SPFieldLookupValue sc = new SPFieldLookupValue(item["Fullname"].ToString());
Console.WriteLine(" - {0}", sc.LookupValue);
...