ProfilePropertySettings Constructor (String, Boolean, SerializationMode, String, String, String, Boolean, String)
Initializes a new instance of the ProfilePropertySettings class with the specified name and settings.
Assembly: System.Web (in System.Web.dll)
Public Sub New ( name As String, readOnly As Boolean, serializeAs As SerializationMode, providerName As String, defaultValue As String, profileType As String, allowAnonymous As Boolean, customProviderData As String )
Parameters
- name
-
Type:
System.String
A unique name for the ProfilePropertySettings object.
- readOnly
-
Type:
System.Boolean
true to indicate that the associated property in the dynamically generated ProfileCommon class should be read-only; otherwise, false.
- serializeAs
-
Type:
System.Web.Configuration.SerializationMode
One of the SerializationMode values.
- providerName
-
Type:
System.String
The name of a provider from the Providers property, or an empty string ("").
- defaultValue
-
Type:
System.String
A string containing the default value used for the named property in the generated page Profile class.
- profileType
-
Type:
System.String
A valid type reference or an empty string.
- allowAnonymous
-
Type:
System.Boolean
true to indicate associated property in the dynamically generated ProfileCommon class should support anonymous users; otherwise, false, to indicate that anonymous users cannot change the named property.
- customProviderData
-
Type:
System.String
A string containing provider-specific information used by the provider associated with the property.
At run time, the ASP.NET compilation system uses the information specified in the profile section of the configuration file to generate a class called ProfileCommon, which is derived from ProfileBase. The class allows you to access and modify the values for individual user profiles.
The ProfileCommon class definition is based on the properties defined in the properties subsection of the profile section of the configuration file. The parameter values that you specify when you create an instance of the ProfilePropertySettings class will be used to define an associated property in the ProfileCommon class.
For more information about profile properties, see ASP.NET Profile Properties Overview.
Available since 2.0