ApplicationSettingsBase.Context 属性

定义

获取与设置组关联的应用程序设置上下文。

public:
 virtual property System::Configuration::SettingsContext ^ Context { System::Configuration::SettingsContext ^ get(); };
[System.ComponentModel.Browsable(false)]
public override System.Configuration.SettingsContext Context { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Context : System.Configuration.SettingsContext
Public Overrides ReadOnly Property Context As SettingsContext

属性值

SettingsContext

与设置组关联的 SettingsContext

属性

注解

派生自 ApplicationSettingsBase 的每个设置包装器类都有与之关联的上下文。 上下文将传递给每个属性的设置提供程序,以确定属性的使用方式。 因此,上下文充当提示来帮助设置提供程序确定如何最好地保留关联的应用程序设置值。

相反,该 SettingsKey 属性使设置提供程序能够消除同一包装类的多个实例的歧义。

适用于

另请参阅