PropertySettings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
默认 IPropertySettings 实现
public ref class PropertySettings : System::Collections::Generic::Dictionary<System::String ^, System::Object ^>, Microsoft::VisualStudio::Workspace::IPropertySettings, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public class PropertySettings : System.Collections.Generic.Dictionary<string,object>, Microsoft.VisualStudio.Workspace.IPropertySettings, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type PropertySettings = class
inherit Dictionary<string, obj>
interface IPropertySettings
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
Public Class PropertySettings
Inherits Dictionary(Of String, Object)
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IPropertySettings
- 继承
-
PropertySettings
- 实现
-
IPropertySettings ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
构造函数
PropertySettings() |
初始化 PropertySettings 类的新实例。 |
PropertySettings(KeyValuePair<String,Object>[]) |
初始化 PropertySettings 类的新实例。 |
字段
EmptySettings |
空设置 |
属性
Item[String] |
默认 IPropertySettings 实现 |
方法
Add(String, Object) |
默认 IPropertySettings 实现 |
扩展方法
AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean) |
将一个字典内容添加到另一个字典 |
GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK) |
获取给定键的值。 |
EmptyIfNull<T>(IEnumerable<T>) |
如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。 |
Copy(IPropertySettings, Func<IPropertySettings>) |
配置实例的深层副本 |
GetPathValue<T>(IPropertySettings, String[]) |
使用路径检索值 |
GetValue<T>(IPropertySettings, String) |
获取类型为 (T) 的值 |
GetValue<T>(IPropertySettings, String, T) |
获取类型为 (T) 的值 |
GetValues(IPropertySettings, Object, BindingFlags, Func<String,String>) |
使用反射 API 的 GetValue |
GetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>) |
使用反射 API 的 GetValue |
SetValues(IPropertySettings, Object, BindingFlags, Func<String,String>) |
使用反射 API 的 SetValues |
SetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>) |
使用反射 API 的 SetValues |
TryGetValue<T>(IPropertySettings, String, T) |
TryGetValue 模式扩展 |