Share via


IProfileEventInterface Interface

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

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Interface IProfileEventInterface
'Usage
Dim instance As IProfileEventInterface
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public interface IProfileEventInterface

Remarks

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.

See Also

Reference

IProfileEventInterface Members

Microsoft.Office.Server.UserProfiles Namespace