从页面数据检索字段值。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetValueFromPageData ( _
strKey As String, _
<OutAttribute> ByRef objValue As Object _
) As Boolean
用法
Dim instance As SPContext
Dim strKey As String
Dim objValue As Object
Dim returnValue As Boolean
returnValue = instance.GetValueFromPageData(strKey, _
objValue)
public bool GetValueFromPageData(
string strKey,
out Object objValue
)
参数
strKey
类型:System.String字段中。
objValue
类型:System.Object存储在页上的字段的值。
返回值
类型:System.Boolean
true如果值被检索从页的数据 ;否则为false。