Share via


PathSegment Class

Definition

A struct representing a component of JSON path used in JsonQueryExpression or JsonScalarExpression.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class PathSegment
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct PathSegment
type PathSegment = class
[<System.Runtime.CompilerServices.IsReadOnly>]
type PathSegment = struct
Public Class PathSegment
Public Structure PathSegment
Inheritance
PathSegment
Inheritance
PathSegment
Attributes

Constructors

PathSegment(SqlExpression)

Creates a new PathSegment struct representing JSON array element access.

PathSegment(String)

Creates a new PathSegment struct representing JSON property access.

Properties

ArrayIndex

The index of an element which is being accessed in the JSON array.

Key

The key which is being accessed in the JSON.

PropertyName

The name of JSON property which is being accessed.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Applies to