SPFieldNumber.ValidateAndParseValue method
驗證和剖析輸入的value並傳回欄位的值可以是有效的物件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overrides Function ValidateAndParseValue ( _
item As SPListItem, _
value As String _
) As Object
'用途
Dim instance As SPFieldNumber
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
)
參數
item
Type: Microsoft.SharePoint.SPListItem含有新值需要驗證欄位SPListItem 。
value
Type: System.String剖析及傳回值字串。
傳回值
Type: System.Object
可以指派給其值的欄位物件。
備註
此覆寫將值轉換成double、 驗證它,並傳回它。