SettingsProvider 构造函数
定义
初始化 SettingsProvider 类的实例。Initializes an instance of the SettingsProvider class.
protected:
SettingsProvider();
protected SettingsProvider ();
Protected Sub New ()
注解
这是此抽象类的默认受保护的构造函数。This is this default protected constructor for this abstract class. 派生自定义设置提供程序无需提供显式构造函数,因为 Initialize 方法通常会执行所有初始化。Derived custom settings providers are not required to provide an explicit constructor because the Initialize method typically performs all initialization.
客户端代码通常不直接实例化设置提供程序;相反,你可以使用以下过程来查找特定设置属性的设置提供程序:Client code typically does not directly instantiate a settings provider; instead, you use the following procedure to find a settings provider for a particular settings property:
GetService在当前或上调用方法 Component ISite ,以返回对当前的引用 ISettingsProviderService 。Call the GetService method on the current Component or ISite to return a reference to the current ISettingsProviderService.
调用 GetSettingsProvider ISettingsProviderService 第一步中检索的的方法以返回设置提供程序。Call the GetSettingsProvider method of the ISettingsProviderService retrieved in the first step to return the settings provider.