ClientSettingsProvider.GetPreviousVersion(SettingsContext, SettingsProperty) 方法

定义

获取指定属性的上一版本。Gets the previous version of the specified property.

public:
 virtual System::Configuration::SettingsPropertyValue ^ GetPreviousVersion(System::Configuration::SettingsContext ^ context, System::Configuration::SettingsProperty ^ property);
public System.Configuration.SettingsPropertyValue GetPreviousVersion (System.Configuration.SettingsContext context, System.Configuration.SettingsProperty property);
abstract member GetPreviousVersion : System.Configuration.SettingsContext * System.Configuration.SettingsProperty -> System.Configuration.SettingsPropertyValue
override this.GetPreviousVersion : System.Configuration.SettingsContext * System.Configuration.SettingsProperty -> System.Configuration.SettingsPropertyValue
Public Function GetPreviousVersion (context As SettingsContext, property As SettingsProperty) As SettingsPropertyValue

参数

context
SettingsContext

该方法不使用此参数。This parameter is not used by this method.

property
SettingsProperty

表示要获取上一版本的属性。Represents the property to get the previous version of.

返回

SettingsPropertyValue

表示指定属性的上一版本。Represents the previous version of the specified property.

实现

例外

IsOffline 属性值为 false,而 ServiceUri 位置的 Web 设置服务不可用。The IsOffline property value is false and the Web settings service at the ServiceUri location is unavailable.

注解

此方法由应用程序设置系统在内部使用,不应由应用程序代码使用。This method is used internally by the application settings system and it not meant to be used by your application code.

适用于