ProfileLoader Class

The ProfileLoader class provides an alternate entry point to user profiles, instead of calling the methods directly. This class is intended to be used from within the web context, where multiple web parts can share a single user profile object.

System.Object

Microsoft.SharePoint.Portal.UserProfiles.ProfileLoader

Public Methods

The following table shows the methods of the ProfileLoader class and a brief description of each.

Name Description
GetProfileLoader(Microsoft.SharePoint.Portal.PortalContext) Gets a ProfileLoader object from the cache if one has been created. If your application is not on the Web, you must specify the portal context.
GetProfileLoader Gets a ProfileLoader object from the context cache. Use this method if you are writing code for the Web site. The GetProfileLoader method uses the default portal context (this is the current portal context of the portal that you are browsing).
GetUserProfile Gets a UserProfile object corresponding to the current user. This method calls the GetUserProfileManager method.
GetUserProfileManager Gets a UserProfileManager object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Remarks

The use of a ProfileLoader object depends on whether you are using the Web. If your application is on the Web, the ProfileLoader object attempts to use a Web cache and a portal context. If your application is not on the Web, you must specify the portal context.

Requirements

Namespace: Microsoft.SharePoint.Portal.UserProfiles

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security