語言

StructuredJsonPathSegment 類別

定義

代表 JSON 路徑中的單一段。 區段可以是屬性名稱或陣列索引的佔位符。

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

備註

更多資訊與範例請參閱 建模實體類型與關係 。

建構函式

名稱 Description
StructuredJsonPathSegment(String)

為一個已命名的屬性建立一個新資料 StructuredJsonPathSegment 。

屬性

名稱 Description
Array

建立一個陣 StructuredJsonPathSegment 列索引的佔位符。

IsArray

會取得一個值,表示此區段是否代表陣列索引的佔位符。

PropertyName

取得 JSON 屬性名稱。 null 用於陣列索引佔位區段。

方法

名稱 Description
ToString()

代表 JSON 路徑中的單一段。 區段可以是屬性名稱或陣列索引的佔位符。

適用於