UserProfileManager UserProfileManager UserProfileManager Constructors

Definition

Overloads

UserProfileManager() UserProfileManager() UserProfileManager()

Initializes a new instance of the UserProfileManagerclass.

UserProfileManager(ServerContext) UserProfileManager(ServerContext)

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

UserProfileManager(SPServiceContext) UserProfileManager(SPServiceContext) UserProfileManager(SPServiceContext)

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

UserProfileManager(Boolean) UserProfileManager(Boolean) UserProfileManager(Boolean)

Initializes a new instance of the UserProfileManager class.

UserProfileManager(ServerContext, Boolean) UserProfileManager(ServerContext, Boolean)

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

UserProfileManager(SPServiceContext, Boolean) UserProfileManager(SPServiceContext, Boolean) UserProfileManager(SPServiceContext, Boolean)

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

UserProfileManager(ServerContext, Boolean, Boolean) UserProfileManager(ServerContext, Boolean, Boolean)

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

UserProfileManager(SPServiceContext, Boolean, Boolean) UserProfileManager(SPServiceContext, Boolean, Boolean) UserProfileManager(SPServiceContext, Boolean, Boolean)

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

UserProfileManager() UserProfileManager() UserProfileManager()

Initializes a new instance of the UserProfileManagerclass.

public:
 UserProfileManager();
public UserProfileManager ();
Public Sub New ()

Remarks

This constructor will use the current service context.

UserProfileManager(ServerContext) UserProfileManager(ServerContext)

Warning

This API is now obsolete.

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

public:
 UserProfileManager(Microsoft::Office::Server::ServerContext ^ serverContext);
[System.Obsolete("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public UserProfileManager (Microsoft.Office.Server.ServerContext serverContext);
Parameters
serverContext
Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext

..

UserProfileManager(SPServiceContext) UserProfileManager(SPServiceContext) UserProfileManager(SPServiceContext)

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

public:
 UserProfileManager(Microsoft::SharePoint::SPServiceContext ^ serviceContext);
public UserProfileManager (Microsoft.SharePoint.SPServiceContext serviceContext);
Public Sub New (serviceContext As SPServiceContext)
Parameters

UserProfileManager(Boolean) UserProfileManager(Boolean) UserProfileManager(Boolean)

Initializes a new instance of the UserProfileManager class.

public:
 UserProfileManager(bool IgnoreUserPrivacy);
public UserProfileManager (bool IgnoreUserPrivacy);
Public Sub New (IgnoreUserPrivacy As Boolean)
Parameters
IgnoreUserPrivacy
Boolean Boolean Boolean

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

UserProfileManager(ServerContext, Boolean) UserProfileManager(ServerContext, Boolean)

Warning

This API is now obsolete.

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

public:
 UserProfileManager(Microsoft::Office::Server::ServerContext ^ serverContext, bool IgnoreUserPrivacy);
[System.Obsolete("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public UserProfileManager (Microsoft.Office.Server.ServerContext serverContext, bool IgnoreUserPrivacy);
Parameters
serverContext
Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext

..

IgnoreUserPrivacy
Boolean Boolean 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.

UserProfileManager(SPServiceContext, Boolean) UserProfileManager(SPServiceContext, Boolean) UserProfileManager(SPServiceContext, Boolean)

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

public:
 UserProfileManager(Microsoft::SharePoint::SPServiceContext ^ serviceContext, bool IgnoreUserPrivacy);
public UserProfileManager (Microsoft.SharePoint.SPServiceContext serviceContext, bool IgnoreUserPrivacy);
Public Sub New (serviceContext As SPServiceContext, IgnoreUserPrivacy As Boolean)
Parameters
IgnoreUserPrivacy
Boolean Boolean 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.

UserProfileManager(ServerContext, Boolean, Boolean) UserProfileManager(ServerContext, Boolean, Boolean)

Warning

This API is now obsolete.

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

public:
 UserProfileManager(Microsoft::Office::Server::ServerContext ^ serverContext, bool IgnoreUserPrivacy, bool backwardCompatible);
[System.Obsolete("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public UserProfileManager (Microsoft.Office.Server.ServerContext serverContext, bool IgnoreUserPrivacy, bool backwardCompatible);
Parameters
serverContext
Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext Microsoft.Office.Server.ServerContext

..

IgnoreUserPrivacy
Boolean Boolean 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
Boolean Boolean Boolean

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

UserProfileManager(SPServiceContext, Boolean, Boolean) UserProfileManager(SPServiceContext, Boolean, Boolean) UserProfileManager(SPServiceContext, Boolean, Boolean)

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

public:
 UserProfileManager(Microsoft::SharePoint::SPServiceContext ^ serviceContext, bool IgnoreUserPrivacy, bool backwardCompatible);
public UserProfileManager (Microsoft.SharePoint.SPServiceContext serviceContext, bool IgnoreUserPrivacy, bool backwardCompatible);
Public Sub New (serviceContext As SPServiceContext, IgnoreUserPrivacy As Boolean, backwardCompatible As Boolean)
Parameters
IgnoreUserPrivacy
Boolean Boolean 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
Boolean Boolean Boolean

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

Applies to