Share via


ProfileLoader.GetProfileLoader method (Boolean)

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
Public Shared Function GetProfileLoader ( _
    IgnoreUserPrivacy As Boolean _
) As ProfileLoader
'Usage
Dim IgnoreUserPrivacy As Boolean
Dim returnValue As ProfileLoader

returnValue = ProfileLoader.GetProfileLoader(IgnoreUserPrivacy)
public static ProfileLoader GetProfileLoader(
    bool IgnoreUserPrivacy
)

Parameters

  • IgnoreUserPrivacy
    Type: System.Boolean

    Set to true to ignore the 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 GetProfileLoadermethod uses the default server context (the server context of the portal that you are currently browsing).

See also

Reference

ProfileLoader class

ProfileLoader members

GetProfileLoader overload

Microsoft.Office.Server.UserProfiles namespace