SettingsProviderAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SettingsProviderAttribute(String) |
初始化該 SettingsProviderAttribute 類別的實例。 |
| SettingsProviderAttribute(Type) |
初始化 SettingsProviderAttribute 類別的新執行個體。 |
SettingsProviderAttribute(String)
初始化該 SettingsProviderAttribute 類別的實例。
public:
SettingsProviderAttribute(System::String ^ providerTypeName);
public SettingsProviderAttribute(string providerTypeName);
new System.Configuration.SettingsProviderAttribute : string -> System.Configuration.SettingsProviderAttribute
Public Sub New (providerTypeName As String)
參數
備註
型別名稱是從 SettingsProvider衍生出的類別名稱,該類別被指定為設定提供者。
注意事項
使用第三方的自訂設定提供者本質上是不安全的,因為這些供應商擁有對你應用程式設定資訊的完整讀寫權限。 設定供應商在採用一般使用前,應經過徹底審核。
另請參閱
適用於
SettingsProviderAttribute(Type)
初始化 SettingsProviderAttribute 類別的新執行個體。
public:
SettingsProviderAttribute(Type ^ providerType);
public SettingsProviderAttribute(Type providerType);
new System.Configuration.SettingsProviderAttribute : Type -> System.Configuration.SettingsProviderAttribute
Public Sub New (providerType As Type)