SPFieldNumber.ParseValue method
會剖析欄位的可能值,並會傳回 object,可指定為欄位的值。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overrides Function ParseValue ( _
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.ParseValue(item, _
value)
public override Object ParseValue(
SPListItem item,
string value
)
參數
item
Type: Microsoft.SharePoint.SPListItem含有新值需要驗證欄位SPListItem 。
value
Type: System.String剖析及傳回值字串。
傳回值
Type: System.Object
value剖析的版本。
備註
這項實作將value轉換成 double,並傳回它。如果值為百分比則會傳回除以 100.0 轉換的值。(如果value是空字串或a null reference (Nothing in Visual Basic), a null reference (Nothing in Visual Basic)會傳回。)