Share via


SPFieldCurrency.ParseAndSetValue method

Parses the specified string to a double value and sets it as this field's value for the specified item.

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

Syntax

'Declaration
Public Overrides Sub ParseAndSetValue ( _
    item As SPListItem, _
    value As String _
)
'Usage
Dim instance As SPFieldCurrency
Dim item As SPListItem
Dim value As String

instance.ParseAndSetValue(item, value)
public override void ParseAndSetValue(
    SPListItem item,
    string value
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The item parameter is null.

Remarks

This method uses Parse() to convert the value of value to a double, then assigns that value to this field in the item represented by item.

See also

Reference

SPFieldCurrency class

SPFieldCurrency members

Microsoft.SharePoint namespace