SettingsProperty 建構函式

定義

初始化 SettingsProperty 類別的新執行個體。

多載

SettingsProperty(SettingsProperty)

根據提供的參數,初始化 SettingsProperty 類別的新執行個體。

SettingsProperty(String)

初始化 SettingsProperty 類別的新執行個體。 以提供的參數為基礎。

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

根據提供的參數,建立 SettingsProperty 類別的新執行個體。

SettingsProperty(SettingsProperty)

來源:
SettingsProperty.cs
來源:
SettingsProperty.cs
來源:
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)

來源:
SettingsProperty.cs
來源:
SettingsProperty.cs
來源:
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)

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

布林值 (Boolean),指定在屬性的還原序列化未能成功時,是否會擲回錯誤。

throwOnErrorSerializing
Boolean

布林值 (Boolean),指定在屬性的序列化未能成功時,是否會擲回錯誤。

適用於