AddDynamicProfileProperty Method

ProfileManager.AddDynamicProfileProperty Method (ProfilePropertySettings)

.NET Framework (current version)
 

Adds a profile property programmatically.

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

static member AddDynamicProfileProperty : 
        property:ProfilePropertySettings -> unit

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
Available since 4.0
Return to top
Show:
© 2016 Microsoft