Share via


PropertySettings Class

Definition

Default IPropertySettings implementation

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
Inheritance
PropertySettings
Implements

Constructors

PropertySettings()

Initializes a new instance of the PropertySettings class.

PropertySettings(KeyValuePair<String,Object>[])

Initializes a new instance of the PropertySettings class.

Fields

EmptySettings

Empty settings

Properties

Item[String]

Gets or sets the element with the specified key.

Methods

Add(String, Object)

Adds an element with the provided key and value to the IDictionary<TKey,TValue>.

Extension Methods

AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean)

Add one dictionary content to the another dictionary

GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK)

Gets a value by the given key.

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Copy(IPropertySettings, Func<IPropertySettings>)

Deep copy of a configuration instance

GetPathValue<T>(IPropertySettings, String[])

Retrieve a value using a path

GetValue<T>(IPropertySettings, String)

Get Value of type (T)

GetValue<T>(IPropertySettings, String, T)

Get Value of type (T)

GetValues(IPropertySettings, Object, BindingFlags, Func<String,String>)

GetValues using Reflection API

GetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>)

GetValues using Reflection API

SetValues(IPropertySettings, Object, BindingFlags, Func<String,String>)

SetValues using Reflection API

SetValues(IPropertySettings, Object, PropertyInfo[], Func<String,String>)

SetValues using Reflection API

TryGetValue<T>(IPropertySettings, String, T)

TryGetValue pattern extension

Applies to