Επεξεργασία

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


SettingsProperty Constructors

Definition

Initializes a new instance of the SettingsProperty class.

Overloads

SettingsProperty(SettingsProperty)

Initializes a new instance of the SettingsProperty class, based on the supplied parameter.

SettingsProperty(String)

Initializes a new instance of the SettingsProperty class. based on the supplied parameter.

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

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

SettingsProperty(SettingsProperty)

Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs

Initializes a new instance of the SettingsProperty class, based on the supplied parameter.

public:
 SettingsProperty(System::Configuration::SettingsProperty ^ propertyToCopy);
public SettingsProperty (System.Configuration.SettingsProperty propertyToCopy);
new System.Configuration.SettingsProperty : System.Configuration.SettingsProperty -> System.Configuration.SettingsProperty
Public Sub New (propertyToCopy As SettingsProperty)

Parameters

propertyToCopy
SettingsProperty

Specifies a copy of an existing SettingsProperty object.

Applies to

SettingsProperty(String)

Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs

Initializes a new instance of the SettingsProperty class. based on the supplied parameter.

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

Parameters

name
String

Specifies the name of an existing SettingsProperty object.

Applies to

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

Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs

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

public:
 SettingsProperty(System::String ^ name, Type ^ propertyType, System::Configuration::SettingsProvider ^ provider, bool isReadOnly, System::Object ^ defaultValue, System::Configuration::SettingsSerializeAs serializeAs, System::Configuration::SettingsAttributeDictionary ^ attributes, bool throwOnErrorDeserializing, bool throwOnErrorSerializing);
public SettingsProperty (string name, Type propertyType, System.Configuration.SettingsProvider provider, bool isReadOnly, object defaultValue, System.Configuration.SettingsSerializeAs serializeAs, System.Configuration.SettingsAttributeDictionary attributes, bool throwOnErrorDeserializing, bool throwOnErrorSerializing);
new System.Configuration.SettingsProperty : string * Type * System.Configuration.SettingsProvider * bool * obj * System.Configuration.SettingsSerializeAs * System.Configuration.SettingsAttributeDictionary * bool * bool -> System.Configuration.SettingsProperty
Public Sub New (name As String, propertyType As Type, provider As SettingsProvider, isReadOnly As Boolean, defaultValue As Object, serializeAs As SettingsSerializeAs, attributes As SettingsAttributeDictionary, throwOnErrorDeserializing As Boolean, throwOnErrorSerializing As Boolean)

Parameters

name
String

The name of the SettingsProperty object.

propertyType
Type

The type of SettingsProperty object.

provider
SettingsProvider

A SettingsProvider object to use for persistence.

isReadOnly
Boolean

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

defaultValue
Object

The default value of the SettingsProperty object.

serializeAs
SettingsSerializeAs

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

throwOnErrorDeserializing
Boolean

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

throwOnErrorSerializing
Boolean

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

Applies to