共用方式為


ProfilePropertyLoader.GetPageProfile Method

Gets the UserProfile associated with the specified Page.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Public Shared Function GetPageProfile ( _
    page As Page _
) As UserProfile
'Usage
Dim page As Page
Dim returnValue As UserProfile

returnValue = ProfilePropertyLoader.GetPageProfile(page)
public static UserProfile GetPageProfile(
    Page page
)

Parameters

Return Value

Type: Microsoft.Office.Server.UserProfiles.UserProfile
The user profile associated with the page.

Remarks

This method returns null if the UserProfile cannot be found.

See Also

Reference

ProfilePropertyLoader Class

ProfilePropertyLoader Members

Microsoft.SharePoint.Portal.WebControls Namespace