語言

IReadOnlyIndex.CollectionIndices 屬性

定義

取得遍歷的複數集合索引,以達到每個索引屬性。

[System.Runtime.CompilerServices.Nullable(2)]
public System.Collections.Generic.IReadOnlyList<System.Collections.Generic.IReadOnlyList<int?>?>? CollectionIndices { get; }
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.CollectionIndices : System.Collections.Generic.IReadOnlyList<System.Collections.Generic.IReadOnlyList<Nullable<int>>>
Public ReadOnly Property CollectionIndices As IReadOnlyList(Of IReadOnlyList(Of Nullable(Of Integer)))

屬性值

屬性

備註

當非 時null,此列表長度與 Properties相同。 每個項目對應於同一位置的性質,且為以下其中之一:

  • null,表示該性質並非透過任何複數集合來達成。
  • 一個在實體根節點與屬性之間,每個複合集合段中有一個項目的清單,順序為最外層優先(索引0的條目解析最接近實體根節點的複集合)。 條 null 目表示索引適用於該集合中的所有元素(例如 Posts.Select(p => p.Title));非null 條目則表示索引僅適用於該固定位置的元素(例如 Posts[0].Title)。

頂 null 層值表示此索引中沒有任何屬性遍歷任何複數集合。

適用於