Partager via


SettingValues Class

Definition

The value of a multiple settings.

public sealed class SettingValues : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier,Microsoft.VisualStudio.Extensibility.Settings.ISettingValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier,Microsoft.VisualStudio.Extensibility.Settings.ISettingValue>>, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier,Microsoft.VisualStudio.Extensibility.Settings.ISettingValue>
type SettingValues = class
    interface IReadOnlyDictionary<SettingIdentifier, ISettingValue>
    interface IReadOnlyCollection<KeyValuePair<SettingIdentifier, ISettingValue>>
    interface seq<KeyValuePair<SettingIdentifier, ISettingValue>>
    interface IEnumerable
Public NotInheritable Class SettingValues
Implements IEnumerable(Of KeyValuePair(Of SettingIdentifier, ISettingValue)), IReadOnlyCollection(Of KeyValuePair(Of SettingIdentifier, ISettingValue)), IReadOnlyDictionary(Of SettingIdentifier, ISettingValue)
Inheritance
SettingValues
Implements

Properties

Count

Gets the number of elements in the collection.

Item[SettingIdentifier]

Gets the element that has the specified key in the read-only dictionary.

Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

Succeeded

Gets a value indicating whether all of the setting values are successfully retrieved.

Values

Gets an enumerable collection that contains the values in the read-only dictionary.

Methods

ContainsKey(Setting)

Determines whether the read-only dictionary contains an element that has the specified key.

ContainsKey(SettingIdentifier)

Determines whether the read-only dictionary contains an element that has the specified key.

GetEnumerator()

Returns an enumerator that iterates through the collection.

TryGetValue(SettingIdentifier, ISettingValue) System.Object.TryGetValue(Microsoft.VisualStudio.Extensibility.Settings.SettingIdentifier,Microsoft.VisualStudio.Extensibility.Settings.ISettingValue@)
TryGetValue<T>(Setting<T>, SettingValue<T>)

Gets the value that is associated with the specified key.

TryGetValue<T>(SettingIdentifier<T>, SettingValue<T>)

Gets the value that is associated with the specified key.

Value<T>(Setting+ObjectArray)

Gets the value of setting converted to the type T.

Value<T>(Setting<T>)

Gets the value of setting converted to the type T.

Value<T>(SettingIdentifier<T>)

Gets the value of settingId converted to the type T.

ValueOrDefault<T>(Setting+ObjectArray, T[])

Gets the value converted to the type T, if the retrieval and the conversion to T are successful. Returns defaultValue otherwise.

ValueOrDefault<T>(Setting<T>, T)

Gets the value converted to the type T, if the retrieval and the conversion to T are successful. Returns defaultValue otherwise.

ValueOrDefault<T>(SettingIdentifier<T>, T)

Gets the value converted to the type T, if the retrieval and the conversion to T are successful. Returns defaultValue otherwise.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

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

Applies to