JsonObject Class
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
Примітка
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.
Json |
|
Json |
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. |
Json |
|
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>. |
Add(Key |
Adds an item to the ICollection<T>. |
Add(String, Json |
Adds an element with the provided key and value to the IDictionary<TKey,TValue>. |
Add |
|
Add |
|
Clear() |
Removes all items from the ICollection<T>. |
Contains |
Determines whether the IDictionary<TKey,TValue> contains an element with the specified key. |
Copy |
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) |
Get |
Returns an enumerator that iterates through the collection. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
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(Text |
(Inherited from JsonValue) |
To |
(Inherited from JsonValue) |
Try |
ICollection<Key |
Determines whether the ICollection<T> contains a specific value. |
ICollection<Key |
Gets a value indicating whether the ICollection<T> is read-only. |
ICollection<Key |
Removes the first occurrence of a specific object from the ICollection<T>. |
IEnumerable. |
Returns an enumerator that iterates through a collection. |
Продукт | Версії |
---|---|
.NET | 6 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: