StructuredJsonPathSegment 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 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 属性名称。
|
方法
| 名称 | 说明 |
|---|---|
| ToString() |
表示 JSON 路径中的单个段。 段是属性名称或数组索引占位符。 |