共用方式為


SPContext.GetValueFromPageData Method

Retrieves a field value from the page data.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
Public Function GetValueFromPageData ( _
    strKey As String, _
    <OutAttribute> ByRef objValue As Object _
) As Boolean
'Usage
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
)

Parameters

  • objValue
    Type: System.Object

    The value of the field that is stored in the page.

Return Value

Type: System.Boolean
true if the value was retrieved from the page data; otherwise, false.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace