SettingsProviderAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
參數
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應