Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
item
Type: Microsoft.SharePoint.SPListItemAn SPListItem containing a field whose new value needs to be validated.
value
Type: System.StringA 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).