This topic has not yet been rated - Rate this topic

IProfileEventInterface Interface

Executes an action whenever a user profile is about to be deleted.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public interface IProfileEventInterface

The IProfileEventInterface interface is used to execute code whenever a user profile is about to be deleted. Implementing the IProfileEventInterface interface allows you to perform an action immediately before a profile is deleted. If you choose not have the profile deleted, you can return false from the PreProfileDeleted method.

The default MySiteProfileHandler handler assigns the deleted user's My Site to that person's manager. If you want that behavior as well, you can subclass it.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ