语言

StructuredJsonPathSegment 类

定义

表示 JSON 路径中的单个段。 段是属性名称或数组索引占位符。

[System.Runtime.CompilerServices.Nullable(0)]
public sealed class StructuredJsonPathSegment
[<System.Runtime.CompilerServices.Nullable(0)>]
type StructuredJsonPathSegment = class
Public NotInheritable Class StructuredJsonPathSegment
继承
StructuredJsonPathSegment
特性

注解

有关详细信息和示例,请参阅 建模实体类型和关系 。

构造函数

名称 说明
StructuredJsonPathSegment(String)

StructuredJsonPathSegment为命名属性创建新的属性。

属性

名称 说明
Array

为数组索引占位符新建一个 StructuredJsonPathSegment 。

IsArray

获取一个值,该值指示此段是否表示数组索引占位符。

PropertyName

获取 JSON 属性名称。 null 用于数组索引占位符段。

方法

名称 说明
ToString()

表示 JSON 路径中的单个段。 段是属性名称或数组索引占位符。

适用于