共用方式為


SPField.ParseValue method

覆寫時的衍生類別中,會剖析欄位的可能值,並會傳回 object,可指定為欄位的值。

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

Syntax

'宣告
Public Overridable Function ParseValue ( _
    item As SPListItem, _
    value As String _
) As Object
'用途
Dim instance As SPField
Dim item As SPListItem
Dim value As String
Dim returnValue As Object

returnValue = instance.ParseValue(item, _
    value)
public virtual Object ParseValue(
    SPListItem item,
    string value
)

參數

傳回值

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

備註

預設實作只會傳回value (即使為a null reference (Nothing in Visual Basic)) ;除非value為空字串,在這種情況a null reference (Nothing in Visual Basic)會傳回。

請考慮ValidateAndParseValue(SPListItem, String)方法的覆寫中呼叫此方法。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace