Språk

StructuredJsonPath Class

Definition

Represents a structured JSON path consisting of property name segments and array index placeholders, along with runtime index values for array positions.

[System.Runtime.CompilerServices.Nullable(0)]
public class StructuredJsonPath
[<System.Runtime.CompilerServices.Nullable(0)>]
type StructuredJsonPath = class
Public Class StructuredJsonPath
Inheritance
StructuredJsonPath
Attributes

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

Name Description
StructuredJsonPath(IReadOnlyList<StructuredJsonPathSegment>, IReadOnlyList<Nullable<Int32>>)

Creates a new StructuredJsonPath instance.

Properties

Name Description
Indices

Gets the index values for array index placeholders. The indices are applied in order to the segments where IsArray is true. A null entry means the indexer is unspecified (all elements).

IsRoot

Gets a value indicating whether this path represents the root of a JSON document ($).

Root

A StructuredJsonPath representing the root of a JSON document ($).

Segments

Gets the path segments.

Methods

Name Description
AppendTo(StringBuilder, Nullable<Char>)

Appends the JSON path string representation to the given StringBuilder.

ToString()

Returns a string that represents the current object.

ToString(Nullable<Char>)

Returns the JSON path string representation.

Applies to