JsonObject 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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))
- 상속
- 구현
-
ICollection<KeyValuePair<String,JsonValue>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,JsonValue> IEnumerable<KeyValuePair<String,JsonValue>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
설명
참고
네임스페이 System.Json 스는 더 이상 지원되지 않는 Silverlight용으로 설계되었습니다. JSON 처리를 위해 대신 네임스페이스에서 API를 System.Text.Json 사용하는 것이 좋습니다.
생성자
JsonObject(IEnumerable<KeyValuePair<String,JsonValue>>) | |
JsonObject(KeyValuePair<String,JsonValue>[]) |
속성
Count |
ICollection<T>에 포함된 요소 수를 가져옵니다. |
Item[Int32] | (다음에서 상속됨 JsonValue) |
Item[String] |
지정한 키를 가진 요소를 가져오거나 설정합니다. |
JsonType | |
Keys |
ICollection<T>의 키를 포함하는 IDictionary<TKey,TValue>을 가져옵니다. |
Values |
ICollection<T>의 값이 들어 있는 IDictionary<TKey,TValue>을 가져옵니다. |
메서드
Add(KeyValuePair<String,JsonValue>) |
ICollection<T>에 항목을 추가합니다. |
Add(String, JsonValue) |
제공된 키와 값을 가진 요소를 IDictionary<TKey,TValue>에 추가합니다. |
AddRange(IEnumerable<KeyValuePair<String,JsonValue>>) | |
AddRange(KeyValuePair<String,JsonValue>[]) | |
Clear() |
ICollection<T>에서 항목을 모두 제거합니다. |
ContainsKey(String) |
지정된 키를 갖는 요소가 IDictionary<TKey,TValue>에 들어 있는지 여부를 결정합니다. |
CopyTo(KeyValuePair<String,JsonValue>[], Int32) |
특정 ICollection<T> 인덱스부터 시작하여 Array의 요소를 Array에 복사합니다. |
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다. (다음에서 상속됨 Object) |
GetEnumerator() |
컬렉션을 반복하는 열거자를 반환합니다. |
GetHashCode() |
기본 해시 함수로 작동합니다. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
Remove(String) |
IDictionary<TKey,TValue>에서 지정한 키를 가지는 요소를 제거합니다. |
Save(Stream) | |
Save(TextWriter) | (다음에서 상속됨 JsonValue) |
ToString() | (다음에서 상속됨 JsonValue) |
TryGetValue(String, JsonValue) |
명시적 인터페이스 구현
ICollection<KeyValuePair<String,JsonValue>>.Contains(KeyValuePair<String,JsonValue>) |
ICollection<T>에 특정 값이 들어 있는지 여부를 확인합니다. |
ICollection<KeyValuePair<String,JsonValue>>.IsReadOnly |
ICollection<T>가 읽기 전용인지 여부를 나타내는 값을 가져옵니다. |
ICollection<KeyValuePair<String,JsonValue>>.Remove(KeyValuePair<String,JsonValue>) |
ICollection<T>에서 맨 처음 발견되는 특정 개체를 제거합니다. |
IEnumerable.GetEnumerator() |
컬렉션을 반복하는 열거자를 반환합니다. |
확장 메서드
AsReadOnly<TKey,TValue>(IDictionary<TKey,TValue>) |
현재 사전에 대한 읽기 전용 ReadOnlyDictionary<TKey,TValue> 래퍼를 반환합니다. |
CopyToDataTable<T>(IEnumerable<T>) |
제네릭 매개 변수 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
제네릭 매개 변수 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
제네릭 매개 변수 |
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기