Language

LocalFileSettingsProvider.GetPropertyValues メソッド

定義

指定したアプリケーション インスタンスと設定プロパティ グループの設定プロパティ値のコレクションを返します。

public:
 override System::Configuration::SettingsPropertyValueCollection ^ GetPropertyValues(System::Configuration::SettingsContext ^ context, System::Configuration::SettingsPropertyCollection ^ properties);
public override System.Configuration.SettingsPropertyValueCollection GetPropertyValues(System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties);
override this.GetPropertyValues : System.Configuration.SettingsContext * System.Configuration.SettingsPropertyCollection -> System.Configuration.SettingsPropertyValueCollection
Public Overrides Function GetPropertyValues (context As SettingsContext, properties As SettingsPropertyCollection) As SettingsPropertyValueCollection

パラメーター

context
SettingsContext

現在のアプリケーションの使用状況を説明する SettingsContext 。

properties
SettingsPropertyCollection

値を取得する settings プロパティ グループを含む SettingsPropertyCollection 。

戻り値

指定した設定プロパティ グループの値を含む SettingsPropertyValueCollection 。

例外

ユーザー スコープの設定が見つかりましたが、現在の構成ではアプリケーション スコープの設定のみがサポートされています。

注釈

GetPropertyValuesメソッドは、特殊なアプリケーション設定の種類ConnectionStringも管理します。 接続文字列は、 <connectionstrings>要素で区切られた構成ファイルの特別なセクションに格納されます。

Caution

LocalFileSettingsProvider は、暗号化を使用して設定を保持しません。 そのため、構成ファイル内の情報を個別に暗号化するなど、追加の予防措置を講じることなく、このプロバイダーを使用してプレーン テキスト パスワードやその他の機密情報を格納しないでください。 詳細については、「 保護された構成を使用した構成情報の暗号化」を参照してください。

適用対象

関連項目