JsonArray Class

Definition

public ref class JsonArray : System::Json::JsonValue, System::Collections::Generic::ICollection<System::Json::JsonValue ^>, System::Collections::Generic::IEnumerable<System::Json::JsonValue ^>, System::Collections::Generic::IList<System::Json::JsonValue ^>
public class JsonArray : System.Json.JsonValue, System.Collections.Generic.ICollection<System.Json.JsonValue>, System.Collections.Generic.IEnumerable<System.Json.JsonValue>, System.Collections.Generic.IList<System.Json.JsonValue>
type JsonArray = class
    inherit JsonValue
    interface IList<JsonValue>
    interface ICollection<JsonValue>
    interface seq<JsonValue>
    interface IEnumerable
Public Class JsonArray
Inherits JsonValue
Implements ICollection(Of JsonValue), IEnumerable(Of JsonValue), IList(Of JsonValue)
Inheritance
JsonArray
Implements

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

JsonArray(IEnumerable<JsonValue>)
JsonArray(JsonValue[])

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

Item[Int32]

Gets or sets the element at the specified index.

Item[String] (Inherited from JsonValue)
JsonType

Methods

Add(JsonValue)

Adds an item to the ICollection<T>.

AddRange(IEnumerable<JsonValue>)
AddRange(JsonValue[])
Clear()

Removes all items from the ICollection<T>.

Contains(JsonValue)

Determines whether the ICollection<T> contains a specific value.

ContainsKey(String) (Inherited from JsonValue)
CopyTo(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)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(JsonValue)

Determines the index of a specific item in the IList<T>.

Insert(Int32, JsonValue)

Inserts an item to the IList<T> at the specified index.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(JsonValue)

Removes the first occurrence of a specific object from the ICollection<T>.

RemoveAt(Int32)

Removes the IList<T> item at the specified index.

Save(Stream)
Save(TextWriter) (Inherited from JsonValue)
ToString() (Inherited from JsonValue)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<JsonValue>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Extension Methods

AsReadOnly<T>(IList<T>)

Returns a read-only ReadOnlyCollection<T> wrapper for the specified list.

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)

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)

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

Applies to