This documentation is archived and is not being maintained.

ProfilePropertySettings.ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String) Constructor

Initializes a new instance of the ProfilePropertySettings class with the specified name and settings.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public ProfilePropertySettings (
	string name,
	bool readOnly,
	SerializationMode serializeAs,
	string providerName,
	string defaultValue,
	string profileType,
	bool allowAnonymous,
	string customProviderData
)
public ProfilePropertySettings (
	String name, 
	boolean readOnly, 
	SerializationMode serializeAs, 
	String providerName, 
	String defaultValue, 
	String profileType, 
	boolean allowAnonymous, 
	String customProviderData
)
public function ProfilePropertySettings (
	name : String, 
	readOnly : boolean, 
	serializeAs : SerializationMode, 
	providerName : String, 
	defaultValue : String, 
	profileType : String, 
	allowAnonymous : boolean, 
	customProviderData : String
)
Not applicable.

Parameters

name

A unique name for the ProfilePropertySettings object.

readOnly

true to indicate that the associated property in the dynamically generated ProfileCommon class should be read-only; otherwise, false.

serializeAs

One of the SerializationMode values.

providerName

The name of a provider from the Providers property, or an empty string ("").

defaultValue

A string containing the default value used for the named property in the generated page Profile class.

profileType

A valid type reference or an empty string.

allowAnonymous

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

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 Understanding ASP.NET Profile Properties.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: