Click or drag to resize
Json.NET

JsonPropertyCollection Class

 
A collection of JsonProperty objects.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionJsonProperty
    System.Collections.ObjectModelKeyedCollectionString, JsonProperty
      Newtonsoft.Json.SerializationJsonPropertyCollection

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 KeyedCollectionString, JsonProperty.)
Public propertyCount (Inherited from CollectionJsonProperty.)
Protected propertyDictionary (Inherited from KeyedCollectionString, JsonProperty.)
Public propertyItemTKey
Gets the element with the specified key.
(Inherited from KeyedCollectionString, JsonProperty.)
Public propertyItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionJsonProperty.)
Protected propertyItems (Inherited from CollectionJsonProperty.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionJsonProperty.)
Public methodAddProperty
Adds a JsonProperty object.
Protected methodChangeItemKey
Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionString, JsonProperty.)
Public methodClear (Inherited from CollectionJsonProperty.)
Protected methodClearItems (Inherited from KeyedCollectionString, JsonProperty.)
Public methodContains(TKey)
Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionString, JsonProperty.)
Public methodContains(T) (Inherited from CollectionJsonProperty.)
Public methodCopyTo (Inherited from CollectionJsonProperty.)
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 CollectionJsonProperty.)
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 KeyedCollectionTKey, TItemGetKeyForItem(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 CollectionJsonProperty.)
Public methodInsert (Inherited from CollectionJsonProperty.)
Protected methodInsertItem (Inherited from KeyedCollectionString, JsonProperty.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(TKey) (Inherited from KeyedCollectionString, JsonProperty.)
Public methodRemove(T) (Inherited from CollectionJsonProperty.)
Public methodRemoveAt (Inherited from CollectionJsonProperty.)
Protected methodRemoveItem (Inherited from KeyedCollectionString, JsonProperty.)
Protected methodSetItem
Replaces the item at the specified index with the specified item.
(Inherited from KeyedCollectionString, JsonProperty.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also