JsonObject Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class JsonObject : System::Json::JsonValue, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Json::JsonValue ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>>
public class JsonObject : System.Json.JsonValue, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>>, System.Collections.Generic.IDictionary<string,System.Json.JsonValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>>
type JsonObject = class
inherit JsonValue
interface IDictionary<string, JsonValue>
interface ICollection<KeyValuePair<string, JsonValue>>
interface seq<KeyValuePair<string, JsonValue>>
interface IEnumerable
Public Class JsonObject
Inherits JsonValue
Implements ICollection(Of KeyValuePair(Of String, JsonValue)), IDictionary(Of String, JsonValue), IEnumerable(Of KeyValuePair(Of String, JsonValue))
- Inheritance
- Implements
-
ICollection<KeyValuePair<String,JsonValue>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,JsonValue> IEnumerable<KeyValuePair<String,JsonValue>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Remarks
Note
The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.
Constructors
JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>) | |
JsonObject(KeyValuePair<String,JsonValue>[]) |
Properties
Count |
Gets the number of elements contained in the ICollection<T>. |
Item[Int32] | (Inherited from JsonValue) |
Item[String] |
Gets or sets the element with the specified key. |
JsonType | |
Keys |
Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>. |
Values |
Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>. |
Methods
Add(KeyValuePair<String,JsonValue>) |
Adds an item to the ICollection<T>. |
Add(String, JsonValue) |
Adds an element with the provided key and value to the IDictionary<TKey,TValue>. |
AddRange(IEnumerable<KeyValuePair<String,JsonValue>>) | |
AddRange(KeyValuePair<String,JsonValue>[]) | |
Clear() |
Removes all items from the ICollection<T>. |
ContainsKey(String) |
Determines whether the IDictionary<TKey,TValue> contains an element with the specified key. |
CopyTo(KeyValuePair<String,JsonValue>[], Int32) |
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(String) |
Removes the element with the specified key from the IDictionary<TKey,TValue>. |
Save(Stream) | |
Save(TextWriter) | (Inherited from JsonValue) |
ToString() | (Inherited from JsonValue) |
TryGetValue(String, JsonValue) |
Explicit Interface Implementations
ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>) |
Determines whether the ICollection<T> contains a specific value. |
ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly |
Gets a value indicating whether the ICollection<T> is read-only. |
ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>) |
Removes the first occurrence of a specific object from the ICollection<T>. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |