MySiteProfileHandler class

Implements the IProfileEventInterface interface.


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 class MySiteProfileHandler : IProfileEventInterface

The IProfileEventInterface interface is used to execute code whenever a user profile is about to be deleted. The default MySiteProfileHandler handler assigns the deleted user's My Site to that person's manager. If you want that behavior, you can subclass it.

For more information about the IProfileEventInterface interface, see IProfileEventInterface.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.