语言

SettingsProperty 构造函数

定义

初始化 SettingsProperty 类的新实例。

重载

名称 说明
SettingsProperty(SettingsProperty)

根据提供的参数初始化类的新实例 SettingsProperty 。

SettingsProperty(String)

初始化 SettingsProperty 类的新实例。 基于提供的参数。

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

基于提供的参数创建类的新实例 SettingsProperty 。

SettingsProperty(SettingsProperty)

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

根据提供的参数初始化类的新实例 SettingsProperty 。

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)

参数

propertyToCopy
SettingsProperty

指定现有 SettingsProperty 对象的副本。

适用于

SettingsProperty(String)

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

初始化 SettingsProperty 类的新实例。 基于提供的参数。

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

参数

name
String

指定现有 SettingsProperty 对象的名称。

适用于

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
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs
Source:
SettingsProperty.cs

基于提供的参数创建类的新实例 SettingsProperty 。

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)

参数

name
String

对象的名称 SettingsProperty 。

propertyType
Type

对象的类型 SettingsProperty 。

provider
SettingsProvider

SettingsProvider要用于持久性的对象。

isReadOnly
Boolean

一个 Boolean 值,该值指定对象 SettingsProperty 是否为只读。

defaultValue
Object

对象的默认值 SettingsProperty 。

serializeAs
SettingsSerializeAs

SettingsSerializeAs 对象。 此对象是用于设置用于存储应用程序设置的序列化方案的枚举。

throwOnErrorDeserializing
Boolean

一个布尔值,该值指定在属性未成功反序列化时是否引发错误。

throwOnErrorSerializing
Boolean

一个布尔值,该值指定在属性未成功序列化时是否引发错误。

适用于