JsonObject JsonObject JsonObject JsonObject Class

Definition

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
JsonObjectJsonObjectJsonObjectJsonObject
Implements

Constructors

JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>) JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>) JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>) JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>)
JsonObject(KeyValuePair<String,JsonValue>[]) JsonObject(KeyValuePair<String,JsonValue>[]) JsonObject(KeyValuePair<String,JsonValue>[]) JsonObject(KeyValuePair<String,JsonValue>[])

Properties

Count Count Count Count
Item[Int32] Item[Int32] Item[Int32] Item[Int32] Inherited from JsonValue
Item[String] Item[String] Item[String] Item[String]
JsonType JsonType JsonType JsonType
Keys Keys Keys Keys
Values Values Values Values

Methods

Add(KeyValuePair<String,JsonValue>) Add(KeyValuePair<String,JsonValue>) Add(KeyValuePair<String,JsonValue>) Add(KeyValuePair<String,JsonValue>)
Add(String, JsonValue) Add(String, JsonValue) Add(String, JsonValue) Add(String, JsonValue)
AddRange(IEnumerable<KeyValuePair<String,JsonValue>>) AddRange(IEnumerable<KeyValuePair<String,JsonValue>>) AddRange(IEnumerable<KeyValuePair<String,JsonValue>>) AddRange(IEnumerable<KeyValuePair<String,JsonValue>>)
AddRange(KeyValuePair<String,JsonValue>[]) AddRange(KeyValuePair<String,JsonValue>[]) AddRange(KeyValuePair<String,JsonValue>[]) AddRange(KeyValuePair<String,JsonValue>[])
Clear() Clear() Clear() Clear()
ContainsKey(String) ContainsKey(String) ContainsKey(String) ContainsKey(String)
CopyTo(KeyValuePair<String,JsonValue>[], Int32) CopyTo(KeyValuePair<String,JsonValue>[], Int32) CopyTo(KeyValuePair<String,JsonValue>[], Int32) CopyTo(KeyValuePair<String,JsonValue>[], Int32)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String) Remove(String) Remove(String) Remove(String)
Save(Stream) Save(Stream) Save(Stream) Save(Stream)
Save(TextWriter) Save(TextWriter) Save(TextWriter) Save(TextWriter) Inherited from JsonValue
ToString() ToString() ToString() ToString() Inherited from JsonValue
TryGetValue(String, JsonValue) TryGetValue(String, JsonValue) TryGetValue(String, JsonValue) TryGetValue(String, JsonValue)

Explicit Interface Implementations

ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>)
ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly
ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>) ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to