Επεξεργασία

Κοινή χρήση μέσω


ProfilePropertySettings Constructors

Definition

Initializes a new instance of the ProfilePropertySettings class.

Overloads

ProfilePropertySettings(String)

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

ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)

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

ProfilePropertySettings(String)

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

public:
 ProfilePropertySettings(System::String ^ name);
public ProfilePropertySettings (string name);
new System.Web.Configuration.ProfilePropertySettings : string -> System.Web.Configuration.ProfilePropertySettings
Public Sub New (name As String)

Parameters

name
String

A unique name for the ProfilePropertySettings object.

Remarks

The following table shows the default settings that are used for this constructor.

Setting Default Value
AllowAnonymous false.
DefaultValue An empty string ("").
ReadOnly false.
SerializeAs ProviderSpecific.
Type An empty string ("").

See also

Applies to

ProfilePropertySettings(String, Boolean, SerializationMode, String, String, String, Boolean, String)

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

public:
 ProfilePropertySettings(System::String ^ name, bool readOnly, System::Web::Configuration::SerializationMode serializeAs, System::String ^ providerName, System::String ^ defaultValue, System::String ^ profileType, bool allowAnonymous, System::String ^ customProviderData);
public ProfilePropertySettings (string name, bool readOnly, System.Web.Configuration.SerializationMode serializeAs, string providerName, string defaultValue, string profileType, bool allowAnonymous, string customProviderData);
new System.Web.Configuration.ProfilePropertySettings : string * bool * System.Web.Configuration.SerializationMode * string * string * string * bool * string -> System.Web.Configuration.ProfilePropertySettings
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
String

A unique name for the ProfilePropertySettings object.

readOnly
Boolean

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

serializeAs
SerializationMode

One of the SerializationMode values.

providerName
String

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

defaultValue
String

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

profileType
String

A valid type reference or an empty string.

allowAnonymous
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
String

A string containing provider-specific information used by the provider associated with the property.

Remarks

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.

See also

Applies to