Click or drag to resize
Json.NET

JsonPropertyCollection Class

 
A collection of JsonProperty objects.
Inheritance Hierarchy
System.Object
  System.Collections.ObjectModel.Collection<JsonProperty>
    System.Collections.ObjectModel.KeyedCollection<String, JsonProperty>
      Newtonsoft.Json.Serialization.JsonPropertyCollection

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public class JsonPropertyCollection : KeyedCollection<string, JsonProperty>

The JsonPropertyCollection type exposes the following members.

Constructors
  NameDescription
Public methodJsonPropertyCollection
Initializes a new instance of the JsonPropertyCollection class.
Top
Properties
  NameDescription
Public propertyComparer
Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollection<String, JsonProperty>.)
Public propertyCount (Inherited from Collection<JsonProperty>.)
Protected propertyDictionary (Inherited from KeyedCollection<String, JsonProperty>.)
Public propertyItem[TKey]
Gets the element with the specified key.
(Inherited from KeyedCollection<String, JsonProperty>.)
Public propertyItem[Int32]
Gets or sets the element at the specified index.
(Inherited from Collection<JsonProperty>.)
Protected propertyItems (Inherited from Collection<JsonProperty>.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from Collection<JsonProperty>.)
Public methodAddProperty
Adds a JsonProperty object.
Protected methodChangeItemKey
Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollection<String, JsonProperty>.)
Public methodClear (Inherited from Collection<JsonProperty>.)
Protected methodClearItems (Inherited from KeyedCollection<String, JsonProperty>.)
Public methodContains(TKey)
Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollection<String, JsonProperty>.)
Public methodContains(T) (Inherited from Collection<JsonProperty>.)
Public methodCopyTo (Inherited from Collection<JsonProperty>.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClosestMatchProperty
Gets the closest matching JsonProperty object. First attempts to get an exact case match of propertyName and then a case insensitive match.
Public methodGetEnumerator (Inherited from Collection<JsonProperty>.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetKeyForItem
When implemented in a derived class, extracts the key from the specified element.
(Overrides KeyedCollection<TKey, TItem>.GetKeyForItem(TItem).)
Public methodGetProperty
Gets a property by property name.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from Collection<JsonProperty>.)
Public methodInsert (Inherited from Collection<JsonProperty>.)
Protected methodInsertItem (Inherited from KeyedCollection<String, JsonProperty>.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(TKey) (Inherited from KeyedCollection<String, JsonProperty>.)
Public methodRemove(T) (Inherited from Collection<JsonProperty>.)
Public methodRemoveAt (Inherited from Collection<JsonProperty>.)
Protected methodRemoveItem (Inherited from KeyedCollection<String, JsonProperty>.)
Protected methodSetItem
Replaces the item at the specified index with the specified item.
(Inherited from KeyedCollection<String, JsonProperty>.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also