JsonObject JsonObject JsonObject JsonObject Class

定義

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))
繼承
JsonObjectJsonObjectJsonObjectJsonObject
實作

建構函式

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>[])

屬性

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

方法

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()

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複製。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)

明確介面實作

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>)

傳回DataTable,其中包含副本DataRow物件,指定輸入IEnumerable<T>物件其中泛型參數TDataRowReturns 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)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

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

篩選的項目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)

將轉換IEnumerableIQueryableConverts 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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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.

適用於