ProfileLoader.GetProfileLoader Method (ServerContext, Boolean)
NOTE: This API is now obsolete.
Gets a ProfileLoader object from the context cache.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
<ObsoleteAttribute("ServerContext parameter is obsolete, use SPServiceContext instead.")> _
Public Shared Function GetProfileLoader ( _
serverContext As ServerContext, _
IgnoreUserPrivacy As Boolean _
) As ProfileLoader
'Usage
Dim serverContext As ServerContext
Dim IgnoreUserPrivacy As Boolean
Dim returnValue As ProfileLoader
returnValue = ProfileLoader.GetProfileLoader(serverContext, _
IgnoreUserPrivacy)
[ObsoleteAttribute("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public static ProfileLoader GetProfileLoader(
ServerContext serverContext,
bool IgnoreUserPrivacy
)
Parameters
serverContext
Type: Microsoft.Office.Server.ServerContextThe server context that contains the source or destination contextual information.
IgnoreUserPrivacy
Type: System.BooleanSet to true to ignore user privacy setting; otherwise, false.
Return Value
Type: Microsoft.Office.Server.UserProfiles.ProfileLoader
The ProfileLoader object.
Remarks
Use the GetProfileLoader method if you are writing code for the Web. The GetProfileLoader method uses the default server context (the server context of the portal that you are currently browsing). A server context identifies the Shared Services Provider (SSP) to use. For more information about SSP, see Office SharePoint Server 2007: Applications and Services.