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

SettingsPropertyCollection,包含要擷取其值的設定屬性群組。

傳回

SettingsPropertyValueCollection,包含指定設定屬性群組的值。

例外狀況

遇到了使用者範圍的設定,但是目前的組態僅支援應用程式範圍的設定。

備註

方法 GetPropertyValues 也會管理特殊應用程式設定類型 ConnectionString。 連接字串會儲存在以 專案 <connectionstrings>分隔之組態檔的特殊區段中。

警告

LocalFileSettingsProvider 不會使用加密來保存任何設定。 因此,請勿使用此提供者儲存純文本密碼或其他敏感性資訊,而不採取其他預防措施,例如個別加密組態檔內的資訊。 如需詳細資訊,請參閱 使用受保護的組態加密組態資訊

適用於

另請參閱