SPFieldGeolocation.ValidateAndParseValue method
Validates the potential field value and returns a parsed object.
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 SPFieldGeolocation
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
item
Type: Microsoft.SharePoint.SPListItemA field whose value needs to be validated.
value
Type: System.StringThe field value to be validated.
Return value
Type: System.Object
A parsed field value for the Geolocation field.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the item parameter is a null reference (Nothing in Visual Basic). |