Export (0) Print
Expand All

ProfileManager.AddDynamicProfileProperty Method

.NET Framework 4.6 and 4.5

Adds a profile property programmatically.

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

public static void AddDynamicProfileProperty(
	ProfilePropertySettings property
)

Parameters

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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft