C# Класс Newtonsoft.Json.Linq.JProperty

Represents a JSON property.
Наследование: JContainer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Children ( ) : JEnumerable

Returns a collection of the child tokens of this token, in document order.

JProperty ( JProperty other ) : System

Initializes a new instance of the JProperty class from another JProperty object.

JProperty ( string name, object content ) : System

Initializes a new instance of the JProperty class.

Load ( JsonReader reader ) : JProperty

Loads an JProperty from a JsonReader.

WriteTo ( JsonWriter writer ) : void

Writes this token to a JsonWriter.

Приватные методы

Метод Описание
AddItem ( bool isLast, JToken previous, JToken item ) : void
ClearItems ( ) : void
CloneToken ( ) : JToken
ContainsItem ( JToken item ) : bool
DeepEquals ( JToken node ) : bool
GetDeepHashCode ( ) : int
GetItem ( int index ) : JToken
GetValueEnumerable ( ) : IEnumerable
InsertItem ( int index, JToken item ) : void
JProperty ( string name ) : System
RemoveItem ( JToken item ) : bool
RemoveItemAt ( int index ) : void
ReplaceItem ( JToken existing, JToken replacement ) : void
SetItem ( int index, JToken item ) : void

Описание методов

Children() публичный Метод

Returns a collection of the child tokens of this token, in document order.
public Children ( ) : JEnumerable
Результат JEnumerable

JProperty() публичный Метод

Initializes a new instance of the JProperty class from another JProperty object.
public JProperty ( JProperty other ) : System
other JProperty A object to copy from.
Результат System

JProperty() публичный Метод

Initializes a new instance of the JProperty class.
public JProperty ( string name, object content ) : System
name string The property name.
content object The property content.
Результат System

Load() публичный статический Метод

Loads an JProperty from a JsonReader.
public static Load ( JsonReader reader ) : JProperty
reader JsonReader A that will be read for the content of the .
Результат JProperty

WriteTo() публичный Метод

Writes this token to a JsonWriter.
public WriteTo ( JsonWriter writer ) : void
writer JsonWriter A into which this method will write.
Результат void