MySiteProfileHandler.PreProfileDeleted Method (ServerContext, UserProfile)
NOTE: This API is now obsolete.
Returns a Boolean value indicating whether the specified user profile in the specified Shared Service Provider context is successfully deleted.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
<ObsoleteAttribute("use PreProfileDeleted(UserProfile profile) instead.")> _
Public Overridable Function PreProfileDeleted ( _
context As ServerContext, _
profile As UserProfile _
) As Boolean
'Usage
Dim instance As MySiteProfileHandler
Dim context As ServerContext
Dim profile As UserProfile
Dim returnValue As Boolean
returnValue = instance.PreProfileDeleted(context, _
profile)
[ObsoleteAttribute("use PreProfileDeleted(UserProfile profile) instead.")]
public virtual bool PreProfileDeleted(
ServerContext context,
UserProfile profile
)
Parameters
context
Type: Microsoft.Office.Server.ServerContextA ServerContext object that represents a Shared Service Provider context.
profile
Type: Microsoft.Office.Server.UserProfiles.UserProfileA UserProfile object that represents a user profile.
Return Value
Type: System.Boolean
true if the user profile is successfully deleted; otherwise, false.
Implements
IProfileEventInterface.PreProfileDeleted(ServerContext, UserProfile)