System.Web.Profile.ProfileMigrateEventHandler Delegate

Represents the method that will handle the ProfileModule.MigrateAnonymous event of the System.Web.Profile.ProfileModule class.

Syntax

public delegate void ProfileMigrateEventHandler (object sender, ProfileMigrateEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

The System.Web.Profile.ProfileMigrateEventHandler delegate is defined for the ProfileModule.MigrateAnonymous event of the System.Web.Profile.ProfileModule class. You can access the ProfileModule.MigrateAnonymous event of the System.Web.Profile.ProfileModule class in the Global.asax file for your ASP.NET application as shown in the example for this topic.

You can use the ProfileModule.MigrateAnonymous event to copy profile property values from an anonymous profile to an authenticated profile when someone who has been anonymously using your application logs in.

When an application that has the user profile enabled is started, ASP.NET creates a new class of type ProfileCommon, which inherits from the System.Web.Profile.ProfileBase class. When the ProfileCommon class is generated, based on the profile properties specified in the Web.config file, a GetProfile method is added that enables you to retrieve a ProfileCommon object based on a user name. You can use the GetProfile method of the current profile to retrieve the property values of the anonymous profile. The anonymous property values can then be copied to the current profile for the authenticated user.

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0