共用方式為


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
)

參數

傳回值

Type: System.Object
value剖析的版本。

備註

這項實作將value轉換成 double,並傳回它。如果值為百分比則會傳回除以 100.0 轉換的值。(如果value是空字串或a null reference (Nothing in Visual Basic), a null reference (Nothing in Visual Basic)會傳回。)

請參閱

參照

SPFieldNumber class

SPFieldNumber members

Microsoft.SharePoint namespace