JValue Class |
Namespace: Newtonsoft.Json.Linq
public class JValue : JToken, IEquatable<JValue>, IFormattable, IComparable, IComparable<JValue>, IConvertible
The JValue type exposes the following members.
Name | Description | |
---|---|---|
JValue(Boolean) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Char) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(DateTime) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(DateTimeOffset) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Decimal) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Double) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Guid) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Int64) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Object) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Single) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(String) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(TimeSpan) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(UInt64) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(Uri) |
Initializes a new instance of the JValue class with the given value.
| |
JValue(JValue) |
Initializes a new instance of the JValue class from another JValue object.
|
Name | Description | |
---|---|---|
First |
Get the first child token of this token.
(Inherited from JToken.) | |
HasValues |
Gets a value indicating whether this token has child tokens.
(Overrides JTokenHasValues.) | |
Item |
Gets the JToken with the specified key.
(Inherited from JToken.) | |
Last |
Get the last child token of this token.
(Inherited from JToken.) | |
Next |
Gets the next sibling token of this node.
(Inherited from JToken.) | |
Parent |
Gets or sets the parent.
(Inherited from JToken.) | |
Path |
Gets the path of the JSON token.
(Inherited from JToken.) | |
Previous |
Gets the previous sibling token of this node.
(Inherited from JToken.) | |
Root | (Inherited from JToken.) | |
Type |
Gets the node type for this JToken.
(Overrides JTokenType.) | |
Value |
Gets or sets the underlying token value.
|
Name | Description | |
---|---|---|
AddAfterSelf |
Adds the specified content immediately after this token.
(Inherited from JToken.) | |
AddAnnotation |
Adds an object to the annotation list of this JToken.
(Inherited from JToken.) | |
AddBeforeSelf |
Adds the specified content immediately before this token.
(Inherited from JToken.) | |
AfterSelf |
Returns a collection of the sibling tokens after this token, in document order.
(Inherited from JToken.) | |
Ancestors |
Returns a collection of the ancestor tokens of this token.
(Inherited from JToken.) | |
AncestorsAndSelf |
Returns a collection of tokens that contain this token, and the ancestors of this token.
(Inherited from JToken.) | |
Annotation(Type) |
Gets the first annotation object of the specified type from this JToken.
(Inherited from JToken.) | |
AnnotationT |
Get the first annotation object of the specified type from this JToken.
(Inherited from JToken.) | |
Annotations(Type) |
Gets a collection of annotations of the specified type for this JToken.
(Inherited from JToken.) | |
AnnotationsT |
Gets a collection of annotations of the specified type for this JToken.
(Inherited from JToken.) | |
BeforeSelf |
Returns a collection of the sibling tokens before this token, in document order.
(Inherited from JToken.) | |
Children |
Returns a collection of the child tokens of this token, in document order.
(Inherited from JToken.) | |
CompareTo |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
| |
CreateComment |
Creates a JValue comment with the given value.
| |
CreateNull |
Creates a JValue null value.
| |
CreateReader |
Creates a JsonReader for this token.
(Inherited from JToken.) | |
CreateString |
Creates a JValue string with the given value.
| |
CreateUndefined |
Creates a JValue undefined value.
| |
DeepClone |
Creates a new instance of the JToken. All child tokens are recursively cloned.
(Inherited from JToken.) | |
Equals(Object) | (Overrides ObjectEquals(Object).) | |
Equals(JValue) |
Indicates whether the current object is equal to another object of the same type.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) | |
GetMetaObject |
Returns the DynamicMetaObject responsible for binding operations performed on this object.
(Overrides JTokenGetMetaObject(Expression).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove |
Removes this token from its parent.
(Inherited from JToken.) | |
RemoveAnnotations(Type) |
Removes the annotations of the specified type from this JToken.
(Inherited from JToken.) | |
RemoveAnnotationsT |
Removes the annotations of the specified type from this JToken.
(Inherited from JToken.) | |
Replace |
Replaces this token with the specified token.
(Inherited from JToken.) | |
SelectToken(String) |
Selects a JToken using a JPath expression. Selects the token that matches the object path.
(Inherited from JToken.) | |
SelectToken(String, Boolean) |
Selects a JToken using a JPath expression. Selects the token that matches the object path.
(Inherited from JToken.) | |
SelectTokens(String) |
Selects a collection of elements using a JPath expression.
(Inherited from JToken.) | |
SelectTokens(String, Boolean) |
Selects a collection of elements using a JPath expression.
(Inherited from JToken.) | |
ToObject(Type) |
Creates an instance of the specified .NET type from the JToken.
(Inherited from JToken.) | |
ToObject(Type, JsonSerializer) |
Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.
(Inherited from JToken.) | |
ToObjectT |
Creates an instance of the specified .NET type from the JToken.
(Inherited from JToken.) | |
ToObjectT(JsonSerializer) |
Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.
(Inherited from JToken.) | |
ToString |
Returns a String that represents this instance.
(Overrides JTokenToString.) | |
ToString(IFormatProvider) |
Returns a String that represents this instance.
| |
ToString(String) |
Returns a String that represents this instance.
| |
ToString(String, IFormatProvider) |
Returns a String that represents this instance.
| |
ToString(Formatting, JsonConverter) |
Returns the JSON for this token using the given formatting and converters.
(Inherited from JToken.) | |
ValueT |
Gets the JToken with the specified key converted to the specified type.
(Inherited from JToken.) | |
ValuesT |
Returns a collection of the child values of this token, in document order.
(Inherited from JToken.) | |
WriteTo |
Writes this token to a JsonWriter.
(Overrides JTokenWriteTo(JsonWriter, JsonConverter).) | |
WriteToAsync(JsonWriter, JsonConverter) |
Writes this token to a JsonWriter asynchronously.
(Inherited from JToken.) | |
WriteToAsync(JsonWriter, CancellationToken, JsonConverter) |
Writes this token to a JsonWriter asynchronously.
(Overrides JTokenWriteToAsync(JsonWriter, CancellationToken, JsonConverter).) |
Name | Description | |||
---|---|---|---|---|
IsValid(JsonSchema) | Overloaded. Determines whether the JToken is valid.
| |||
IsValid(JsonSchema, IListString) | Overloaded. Determines whether the JToken is valid.
| |||
Validate(JsonSchema) | Overloaded. Validates the specified JToken.
| |||
Validate(JsonSchema, ValidationEventHandler) | Overloaded. Validates the specified JToken.
|