SettingsProperty Constructor (String, Type, SettingsProvider, Boolean, Object, SettingsSerializeAs, SettingsAttributeDictionary, Boolean, Boolean)

 

Creates a new instance of the SettingsProperty class based on the supplied parameters.

Namespace:   System.Configuration
Assembly:  System (in System.dll)

public SettingsProperty(
	string name,
	Type propertyType,
	SettingsProvider provider,
	bool isReadOnly,
	object defaultValue,
	SettingsSerializeAs serializeAs,
	SettingsAttributeDictionary attributes,
	bool throwOnErrorDeserializing,
	bool throwOnErrorSerializing
)

Parameters

name
Type: System.String

The name of the SettingsProperty object.

propertyType
Type: System.Type

The type of SettingsProperty object.

provider
Type: System.Configuration.SettingsProvider

A SettingsProvider object to use for persistence.

isReadOnly
Type: System.Boolean

A Boolean value specifying whether the SettingsProperty object is read-only.

defaultValue
Type: System.Object

The default value of the SettingsProperty object.

serializeAs
Type: System.Configuration.SettingsSerializeAs

A SettingsSerializeAs object. This object is an enumeration used to set the serialization scheme for storing application settings.

attributes
Type: System.Configuration.SettingsAttributeDictionary

A SettingsAttributeDictionary object.

throwOnErrorDeserializing
Type: System.Boolean

A Boolean value specifying whether an error will be thrown when the property is unsuccessfully deserialized.

throwOnErrorSerializing
Type: System.Boolean

A Boolean value specifying whether an error will be thrown when the property is unsuccessfully serialized.

.NET Framework
Available since 2.0
Return to top
Show: