ProfileManager.AddDynamicProfileProperty Method (ProfilePropertySettings)

.NET Framework (current version)

Adds a profile property programmatically.

Namespace:   System.Web.Profile
Assembly:  System.Web (in System.Web.dll)

public static void AddDynamicProfileProperty(
	ProfilePropertySettings property


Type: System.Web.Configuration.ProfilePropertySettings

The property settings to be added.

This method is functionally equivalent to adding the property to the profile section of the configuration file. To call this method to add the profile property, you must make the call in a method that is marked with the PreApplicationStartMethodAttribute attribute.

.NET Framework
Available since 4.0
Return to top