SPField.GetFieldValue method
將指定的值轉換成欄位類型值。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Function GetFieldValue ( _
value As String _
) As Object
'用途
Dim instance As SPField
Dim value As String
Dim returnValue As Object
returnValue = instance.GetFieldValue(value)
public virtual Object GetFieldValue(
string value
)
參數
value
Type: System.String要轉換成欄位類型值的值。
傳回值
Type: System.Object
欄位類型值。
備註
Use this method to convert the field type to a complex data type that differs from that of the parent field type. In a custom type-specific class, override this method to convert; for example, a URL field value in URL, or a Description format into an SPFieldUrlValue object. For more information about field value objects, see Custom Field Value Classes.