Share via


SettingsProviderAttribute 建構函式

定義

多載

SettingsProviderAttribute(String)

初始化 SettingsProviderAttribute 類別的執行個體。

SettingsProviderAttribute(Type)

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

SettingsProviderAttribute(String)

來源:
SettingsProviderAttribute.cs
來源:
SettingsProviderAttribute.cs
來源:
SettingsProviderAttribute.cs

初始化 SettingsProviderAttribute 類別的執行個體。

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

參數

providerTypeName
String

String,包含設定提供者的名稱。

備註

類型名稱是衍生自 SettingsProvider的類別名稱,其指定為設定提供者。

警告

從任意第三方使用自定義設定提供者原本就不安全,因為這些提供者具有應用程式組態資訊的完整讀取/寫入許可權。 在採用設定提供者以供一般使用之前,應該經過徹底審查。

另請參閱

適用於

SettingsProviderAttribute(Type)

來源:
SettingsProviderAttribute.cs
來源:
SettingsProviderAttribute.cs
來源:
SettingsProviderAttribute.cs

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

public:
 SettingsProviderAttribute(Type ^ providerType);
public SettingsProviderAttribute (Type providerType);
new System.Configuration.SettingsProviderAttribute : Type -> System.Configuration.SettingsProviderAttribute
Public Sub New (providerType As Type)

參數

providerType
Type

包含設定提供者類型的 Type

適用於