UserProfileManager constructor (SPServiceContext, Boolean, Boolean)

Initializes a new instance of the UserProfileManager class for the specified service context.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Sub New ( _
    serviceContext As SPServiceContext, _
    IgnoreUserPrivacy As Boolean, _
    backwardCompatible As Boolean _
)
'Usage
Dim serviceContext As SPServiceContext
Dim IgnoreUserPrivacy As Boolean
Dim backwardCompatible As Boolean

Dim instance As New UserProfileManager(serviceContext, _
    IgnoreUserPrivacy, backwardCompatible)
public UserProfileManager(
    SPServiceContext serviceContext,
    bool IgnoreUserPrivacy,
    bool backwardCompatible
)

Parameters

  • IgnoreUserPrivacy
    Type: System.Boolean

    When this parameter is true, administrators can load and access complete user records for any user profile objects. When this parameter is true, administrators work as regular users and can load only trimmed profile information based on the user profile’s privacy setting.

  • backwardCompatible
    Type: System.Boolean

    This value is true by default. If this value is true, all user profile properties are initialized for users who are administrators.

See also

Reference

UserProfileManager class

UserProfileManager members

UserProfileManager overload

Microsoft.Office.Server.UserProfiles namespace