This topic has not yet been rated - Rate this topic

ProfilePropertyLoader.GetPageProfile Method

SharePoint 2010

Gets the UserProfile associated with the specified Page.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
public static UserProfile GetPageProfile(
	Page page
)

Parameters

page
Type: System.Web.UI.Page
The page to be searched for the UserProfile.

Return Value

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

This method returns null if the UserProfile cannot be found.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ