UserProfileManager constructor (ServerContext, Boolean)

NOTE: This API is now obsolete.

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

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 Sub New ( _
    serverContext As ServerContext, _
    IgnoreUserPrivacy As Boolean _
)
'Usage
Dim serverContext As ServerContext
Dim IgnoreUserPrivacy As Boolean

Dim instance As New UserProfileManager(serverContext, _
    IgnoreUserPrivacy)
[ObsoleteAttribute("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public UserProfileManager(
    ServerContext serverContext,
    bool IgnoreUserPrivacy
)

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.

See also

Reference

UserProfileManager class

UserProfileManager members

UserProfileManager overload

Microsoft.Office.Server.UserProfiles namespace