다음을 통해 공유


SPField.ValidateParseAndSetValue method

Calls ValidateAndParseValue(SPListItem, String) and assigns the returned object as the value of the field.

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

Syntax

'Declaration
Public Sub ValidateParseAndSetValue ( _
    item As SPListItem, _
    value As String _
)
'Usage
Dim instance As SPField
Dim item As SPListItem
Dim value As String

instance.ValidateParseAndSetValue(item, _
    value)
public void ValidateParseAndSetValue(
    SPListItem item,
    string value
)

Parameters

  • value
    Type: System.String

    A string with the value to be parsed and assigned to the field.

Exceptions

Exception Condition
ArgumentNullException

Item is a null reference (Nothing in Visual Basic).

Remarks

The parsing and validating behavior of this method is dependent on how the derived class overrides ValidateAndParseValue(SPListItem, String).

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace