JProperty Class
Namespace: Stimulsoft.Base.Json.Linq
Represents a JSON property.
Inheritance
Inherits from: JContainer
Constructors
| Constructor | Description |
|---|---|
| JProperty(JProperty other) | Initializes a new instance of the JProperty class from another JProperty object. |
| JProperty(string name, objectcontent ) | Initializes a new instance of the JProperty class. |
| JProperty(string name, object content) | Initializes a new instance of the JProperty class. |
JProperty(other: JProperty)
Initializes a new instance of the JProperty class from another JProperty object.
Parameters
- other (JProperty) — A JProperty object to copy from.
JProperty(name: string, **: objectcontent)
Initializes a new instance of the JProperty class.
Parameters
- name (string) — The property name.
- ** (objectcontent)
JProperty(name: string, content: object)
Initializes a new instance of the JProperty class.
Parameters
- name (string) — The property name.
- content (object) — The property content.
Methods
| Method | Returns | Description |
|---|---|---|
| Add | void | |
| Clear | void | |
| Contains | bool | |
| CopyTo | void | |
| GetEnumerator | IEnumerator<JToken> | |
| IndexOf | int | |
| Insert | void | |
Load static |
JProperty | Loads an JProperty from a JsonReader. |
| Remove | bool | |
| RemoveAt | void | |
| WriteTo | void | Writes this token to a JsonWriter. |
Method Details
Add
Add(item: JToken): void
Parameters
- item (JToken)
Clear
Clear(): void
Contains
Contains(item: JToken): bool
Parameters
- item (JToken)
Returns bool
CopyTo
CopyTo(**: JTokenarray, **arrayIndex: int): void
Parameters
- ** (JTokenarray)
- arrayIndex (int)
GetEnumerator
GetEnumerator(): IEnumerator<JToken>
Returns IEnumerator<JToken>
IndexOf
IndexOf(item: JToken): int
Parameters
- item (JToken)
Returns int
Insert
Insert(index: int, item: JToken): void
Parameters
- index (int)
- item (JToken)
Load static
Load(reader: JsonReader): JProperty
Loads an JProperty from a JsonReader.
Parameters
- reader (JsonReader) — A JsonReader that will be read for the content of the JProperty.
Returns JProperty — A JProperty that contains the JSON that was read from the specified JsonReader.
Remove
Remove(item: JToken): bool
Parameters
- item (JToken)
Returns bool
RemoveAt
RemoveAt(index: int): void
Parameters
- index (int)
WriteTo
WriteTo(writer: JsonWriter, **: JsonConverterconverters): void
Writes this token to a JsonWriter.
Parameters
- writer (JsonWriter) — A JsonWriter into which this method will write.
- ** (JsonConverterconverters)