Class JProperty
Represents a JSON property.
Inheritance
System.Object
JProperty
Implements
System.ICloneable
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IList<
JToken>
System.Collections.Generic.ICollection<
JToken>
System.Collections.Generic.IEnumerable<
JToken>
System.ComponentModel.ITypedList
System.ComponentModel.IBindingList
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JProperty : JContainer, IJEnumerable<JToken>, IJsonLineInfo, ICloneable, IDynamicMetaObjectProvider, IList<JToken>, ICollection<JToken>, IEnumerable<JToken>, ITypedList, IBindingList, IList, ICollection, IEnumerable, INotifyCollectionChanged
Constructors
|
Improve this Doc
View Source
JProperty(JProperty)
Declaration
public JProperty(JProperty other)
Parameters
|
Improve this Doc
View Source
JProperty(String)
Declaration
public JProperty(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
|
Improve this Doc
View Source
JProperty(String, Object)
Initializes a new instance of the JProperty class.
Declaration
public JProperty(string name, object content)
Parameters
Type |
Name |
Description |
System.String |
name |
The property name.
|
System.Object |
content |
The property content.
|
|
Improve this Doc
View Source
JProperty(String, Object[])
Initializes a new instance of the JProperty class.
Declaration
public JProperty(string name, params object[] content)
Parameters
Type |
Name |
Description |
System.String |
name |
The property name.
|
System.Object[] |
content |
The property content.
|
Properties
|
Improve this Doc
View Source
ChildrenTokens
Gets the container's children tokens.
Declaration
protected override IList<JToken> ChildrenTokens { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<JToken> |
The container's children tokens.
|
Overrides
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
The property name.
|
|
Improve this Doc
View Source
Type
Gets the node type for this JToken.
Declaration
public override JTokenType Type { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Value
Gets or sets the property value.
Declaration
public JToken Value { get; set; }
Property Value
Type |
Description |
JToken |
The property value.
|
Methods
|
Improve this Doc
View Source
ClearItems()
Declaration
public override void ClearItems()
Overrides
|
Improve this Doc
View Source
CloneToken()
Declaration
public override JToken CloneToken()
Returns
Overrides
|
Improve this Doc
View Source
ContainsItem(JToken)
Declaration
public override bool ContainsItem(JToken item)
Parameters
Type |
Name |
Description |
JToken |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
DeepEquals(JToken)
Declaration
public override bool DeepEquals(JToken node)
Parameters
Type |
Name |
Description |
JToken |
node |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
GetDeepHashCode()
Declaration
public override int GetDeepHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
GetItem(Int32)
Declaration
public override JToken GetItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Overrides
|
Improve this Doc
View Source
IndexOfItem(JToken)
Declaration
public override int IndexOfItem(JToken item)
Parameters
Type |
Name |
Description |
JToken |
item |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
InsertItem(Int32, JToken, Boolean)
Declaration
public override void InsertItem(int index, JToken item, bool skipParentCheck)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
JToken |
item |
|
System.Boolean |
skipParentCheck |
|
Overrides
|
Improve this Doc
View Source
Load(JsonReader)
Declaration
public static JProperty Load(JsonReader reader)
Parameters
Returns
|
Improve this Doc
View Source
Load(JsonReader, JsonLoadSettings)
Declaration
public static JProperty Load(JsonReader reader, JsonLoadSettings settings)
Parameters
Returns
|
Improve this Doc
View Source
MergeItem(Object, JsonMergeSettings)
Declaration
public override void MergeItem(object content, JsonMergeSettings settings)
Parameters
Overrides
|
Improve this Doc
View Source
RemoveItem(JToken)
Declaration
public override bool RemoveItem(JToken item)
Parameters
Type |
Name |
Description |
JToken |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
RemoveItemAt(Int32)
Declaration
public override void RemoveItemAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Overrides
|
Improve this Doc
View Source
SetItem(Int32, JToken)
Declaration
public override void SetItem(int index, JToken item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
JToken |
item |
|
Overrides
|
Improve this Doc
View Source
WriteTo(JsonWriter, JsonConverter[])
Declaration
public override void WriteTo(JsonWriter writer, params JsonConverter[] converters)
Parameters
Overrides
Implements
System.ICloneable
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.ComponentModel.ITypedList
System.ComponentModel.IBindingList
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
Extension Methods