Share via


MySiteProfileHandler Class

Implements the IProfileEventInterface interface.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.UserProfiles.MySiteProfileHandler

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

Syntax

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

Remarks

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 as well, you can subclass it.

For more information the IProfileEventInterface interface, see IProfileEventInterface.

Thread Safety

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

See Also

Reference

MySiteProfileHandler Members

Microsoft.Office.Server.UserProfiles Namespace