SPField.GetFieldValue 方法

将指定的值转换为字段类型值。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    要转换的字段类型值的值。

返回值

类型: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.

另请参阅

引用

SPField 类

SPField 成员

Microsoft.SharePoint 命名空间