SettingsProperty Konstruktorer

Definition

Initierar en ny instans av SettingsProperty klassen.

Överlagringar

Name Description
SettingsProperty(SettingsProperty)

Initierar en ny instans av SettingsProperty klassen, baserat på den angivna parametern.

SettingsProperty(String)

Initierar en ny instans av SettingsProperty klassen. baserat på den angivna parametern.

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

Skapar en ny instans av SettingsProperty klassen baserat på de angivna parametrarna.

SettingsProperty(SettingsProperty)

Initierar en ny instans av SettingsProperty klassen, baserat på den angivna parametern.

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)

Parametrar

propertyToCopy
SettingsProperty

Anger en kopia av ett befintligt SettingsProperty objekt.

Gäller för

SettingsProperty(String)

Initierar en ny instans av SettingsProperty klassen. baserat på den angivna parametern.

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

Parametrar

name
String

Anger namnet på ett befintligt SettingsProperty objekt.

Gäller för

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

Skapar en ny instans av SettingsProperty klassen baserat på de angivna parametrarna.

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)

Parametrar

name
String

Namnet på SettingsProperty objektet.

propertyType
Type

Typ av SettingsProperty objekt.

provider
SettingsProvider

Ett SettingsProvider objekt som ska användas för beständighet.

isReadOnly
Boolean

Ett Boolean värde som anger om objektet SettingsProperty är skrivskyddat.

defaultValue
Object

Standardvärdet för SettingsProperty objektet.

serializeAs
SettingsSerializeAs

Ett SettingsSerializeAs objekt. Det här objektet är en uppräkning som används för att ange serialiseringsschemat för lagring av programinställningar.

throwOnErrorDeserializing
Boolean

Ett booleskt värde som anger om ett fel ska utlösas när egenskapen utan framgång deserialiseras.

throwOnErrorSerializing
Boolean

Ett booleskt värde som anger om ett fel ska utlösas när egenskapen utan framgång serialiseras.

Gäller för