ProfileEventArgs Class
Provides data for the Personalize event of the ProfileModule class.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | ProfileEventArgs(HttpContext^) | Creates an instance of the ProfileEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | Context | Gets the HttpContext for the current request. |
![]() | Profile | Gets or sets the user profile for the current request. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
You can use the ProfileEventArgs class during the Personalize event to specify a custom user profile. If, when the Personalize event completes, the ProfileEventArgs parameter of the ProfileEventHandler has its Profile property set to a value that’s not null, then the ProfileModule uses the value of the Profile property in the current HttpContext.
The following code example shows the Personalize event declared in the Global.asax file for an application. The event code loads a user profile based on role membership.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

