ProfilePropertyLoader.LoadRequestedProfile 方法
将该配置文件加载从当前的HttpRequest的查询字符串。
命名空间: Microsoft.SharePoint.Portal.WebControls
程序集: Microsoft.SharePoint.Portal(位于 Microsoft.SharePoint.Portal.dll 中)
语法
声明
Protected Function LoadRequestedProfile ( _
<OutAttribute> ByRef redirectionUrl As String _
) As ProfileBase
用法
Dim redirectionUrl As String
Dim returnValue As ProfileBase
returnValue = Me.LoadRequestedProfile(redirectionUrl)
protected ProfileBase LoadRequestedProfile(
out string redirectionUrl
)
参数
redirectionUrl
类型:System.String如果不能加载的配置文件,则此方法返回一个字符串,表示Page将被重定向到的 URL。不经初始化就传递此参数。
返回值
类型:Microsoft.Office.Server.UserProfiles.ProfileBase
加载的配置文件。
备注
此方法加载用户或组织的配置文件信息,基于当前页上的查询字符串,并返回加载的配置文件。如果查询字符串包含帐户名、 guid、 sid, preferredname或用户的值,则将加载用户配置文件。如果查询字符串包含ID或guid的值,则将加载组织配置文件。如果当前页上没有任何查询字符串,则加载当前用户。