C# Class Newtonsoft.Json.Linq.JProperty

Represents a JSON property.
Inheritance: JContainer
Mostrar archivo Open project: runegri/Applicable Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Children() public method

Returns a collection of the child tokens of this token, in document order.
public Children ( ) : JEnumerable
return JEnumerable

JProperty() public method

Initializes a new instance of the JProperty class from another JProperty object.
public JProperty ( JProperty other ) : System
other JProperty A object to copy from.
return System

JProperty() public method

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.
return System

Load() public static method

Loads an JProperty from a JsonReader.
public static Load ( JsonReader reader ) : JProperty
reader JsonReader A that will be read for the content of the .
return JProperty

WriteTo() public method

Writes this token to a JsonWriter.
public WriteTo ( JsonWriter writer ) : void
writer JsonWriter A into which this method will write.
return void