Share via


ArraySettingItem Class

Definition

Value of one of the entries of a Setting.ObjectArray. ArraySettingItem behaves like a Dictionary<TKey,TValue> but its values can only be accessed by calling GetValue<T>(String) or TryGetValue<T>(String, T).

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItem+ArraySettingItemConverter))]
public sealed class ArraySettingItem : IEquatable<Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItem>, System.Collections.IEnumerable
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Settings.ArraySettingItem+ArraySettingItemConverter))>]
type ArraySettingItem = class
    interface IEquatable<ArraySettingItem>
    interface IEnumerable
Public NotInheritable Class ArraySettingItem
Implements IEnumerable, IEquatable(Of ArraySettingItem)
Inheritance
ArraySettingItem
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

ArraySettingItem()

Initializes a new instance of the ArraySettingItem class.

ArraySettingItem(IDictionary<String,Object>)

Initializes a new instance of the ArraySettingItem class that contains elements copied from the specified IDictionary<TKey,TValue>.

Properties

Count

Gets the number of properties contained in the ArraySettingItem.

Item[String]

Sets the value associated with the specified property identifier.

PropertyIdentifiers

Gets a collection containing the identifiers of the properties in the ArraySettingItem.

Methods

Add(String, Object)

Adds a property with the specified identifier and value into the ArraySettingItem.

Clear()

Removes all properties from the ArraySettingItem.

ContainsPorperty(String)

Determines whether the ArraySettingItem contains a property with the specified identifier.

Equals(ArraySettingItem)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetValue<T>(String)

Gets the value associated with the specified property converted to the type T.

Remove(String)

Removes the property with the specified identifier from the ArraySettingItem.

TryGetValue<T>(String, T)

Gets the value associated with the specified property converted to the type T.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the identifiers of the properties in the ArraySettingItem.

Applies to