共用方式為


SPFieldLookup.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 SPFieldLookup
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
)

參數

  • value
    Type: System.String

    具有要剖析和傳回值的字串。

傳回值

Type: System.Object
物件,可以指派給它的值為欄位。

備註

這個覆寫將value轉換成SPFieldLookupValueSPFieldLookupValueCollection物件,視是否允許多個值的欄位,然後將它傳回。

請參閱

參照

SPFieldLookup class

SPFieldLookup members

Microsoft.SharePoint namespace