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.UserProfiles (in Microsoft.Office.Server.UserProfiles.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