ProfilePropertyLoader.LoadRequestedProfile Method
Loads the profile from the query strings of the current HttpRequest.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Protected Function LoadRequestedProfile ( _
<OutAttribute> ByRef redirectionUrl As String _
) As ProfileBase
'Usage
Dim redirectionUrl As String
Dim returnValue As ProfileBase
returnValue = Me.LoadRequestedProfile(redirectionUrl)
protected ProfileBase LoadRequestedProfile(
out string redirectionUrl
)
Parameters
redirectionUrl
Type: System.StringIf the profile cannot be loaded, this method returns a string that represents the URL to which the Page will be redirected. This parameter is passed uninitialized.
Return Value
Type: Microsoft.Office.Server.UserProfiles.ProfileBase
The loaded profile.
Remarks
This method loads user or organization profile information based on the query string on the current page and returns the loaded profile. A user profile is loaded if the query string contains a value for accountname, guid, sid, preferredname, or user. An organization profile is loaded if the query string contains a value for ID or guid. If there is no query string on the current page, the current user is loaded.