IWorkspaceSettingsManager.GetAggregatedSettings(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置读取器 (请注意,当已应用读取设置层次结构时,使用者不应区分使用) 定义属性的位置。 此属性返回的对象是不可变的。 发生更改时,将创建一个新的对象 (并) 激发 OnWorkspaceSettingsChanged。
将在继承重写规则 ((也称为 PerUser > PerWorkspace > PerMachine) )应用生成,并为命名属性、数组或子设置返回入选值
Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings GetAggregatedSettings(std::wstring const & type, std::wstring const & scopePath = null);
public Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings GetAggregatedSettings (string type, string scopePath = default);
abstract member GetAggregatedSettings : string * string -> Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings
Public Function GetAggregatedSettings (type As String, Optional scopePath As String = Nothing) As IWorkspaceSettings
参数
- type
- String
设置类型 (对应于独立的设置文件名) 使用 SettingsTypes 类常量
- scopePath
- String
工作区中的位置我们需要的设置。 请注意,由于层次结构聚合模型的工作区树的不同部分将具有不同的设置值。
返回
设置读者