SPFieldUser.ValidateAndParseValue method

Validates and parses the input value and returns a valid object that can be the value of the field.

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

Syntax

'Declaration
Public Overrides Function ValidateAndParseValue ( _
    item As SPListItem, _
    value As String _
) As Object
'Usage
Dim instance As SPFieldUser
Dim item As SPListItem
Dim value As String
Dim returnValue As Object

returnValue = instance.ValidateAndParseValue(item, _
    value)
public override Object ValidateAndParseValue(
    SPListItem item,
    string value
)

Parameters

  • value
    Type: System.String

    A string with the value to be parsed and returned.

Return value

Type: System.Object
An object that can be assigned to the field as its value.

Remarks

This override assumes that value is a delimited list of people picker entity keys. It verifies that they all refer to real users and converts the list to an SPFieldUserValueCollection object which it returns.

See also

Reference

SPFieldUser class

SPFieldUser members

Microsoft.SharePoint namespace