IProfileEventInterface interface
Executa uma ação sempre que um perfil de usuário está prestes a ser excluído.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaração
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Interface IProfileEventInterface
'Uso
Dim instance As IProfileEventInterface
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public interface IProfileEventInterface
Comentários
A interface IProfileEventInterface é usada para executar o código sempre que um perfil de usuário está prestes a ser excluído. Implementar a interface IProfileEventInterface permite que você execute uma ação imediatamente antes que um perfil seja excluído. Se você optar por não ter o perfil excluído, você pode retornar false do método PreProfileDeleted .
O manipulador padrão de MySiteProfileHandler atribui o Meu Site do usuário excluído ao gerente da pessoa. Se desejar que esse comportamento também, você pode subclasse-lo.